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