// 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