// ------------------------------------------------------------------------------ // // This code was generated 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; } } }