// 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); } }