// ------------------------------------------------------------------------------ // // This code was generated 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; /// /// To be documented. /// public uint KerningPairUseBisect; /// /// To be documented. /// public uint KerningPairOffset; /// /// To be documented. /// public uint KerningPairCount; /// /// 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; } } /// /// 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 ref uint KerningPairUseBisect => ref Unsafe.AsRef(&Handle->KerningPairUseBisect); /// /// To be documented. /// public ref uint KerningPairOffset => ref Unsafe.AsRef(&Handle->KerningPairOffset); /// /// To be documented. /// public ref uint KerningPairCount => ref Unsafe.AsRef(&Handle->KerningPairCount); } }