// ------------------------------------------------------------------------------ // // 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; using Dalamud.Bindings.ImGui; namespace Dalamud.Bindings.ImPlot { /// /// To be documented. /// [StructLayout(LayoutKind.Sequential)] public partial struct ImPlotInputMap { /// /// To be documented. /// public ImGuiMouseButton Pan; /// /// To be documented. /// public ImGuiModFlags PanMod; /// /// To be documented. /// public ImGuiMouseButton Fit; /// /// To be documented. /// public ImGuiMouseButton Select; /// /// To be documented. /// public ImGuiMouseButton SelectCancel; /// /// To be documented. /// public ImGuiModFlags SelectMod; /// /// To be documented. /// public ImGuiModFlags SelectHorzMod; /// /// To be documented. /// public ImGuiModFlags SelectVertMod; /// /// To be documented. /// public ImGuiMouseButton Menu; /// /// To be documented. /// public ImGuiModFlags OverrideMod; /// /// To be documented. /// public ImGuiModFlags ZoomMod; /// /// To be documented. /// public float ZoomRate; /// /// To be documented. /// public unsafe ImPlotInputMap(ImGuiMouseButton pan = default, ImGuiModFlags panMod = default, ImGuiMouseButton fit = default, ImGuiMouseButton select = default, ImGuiMouseButton selectCancel = default, ImGuiModFlags selectMod = default, ImGuiModFlags selectHorzMod = default, ImGuiModFlags selectVertMod = default, ImGuiMouseButton menu = default, ImGuiModFlags overrideMod = default, ImGuiModFlags zoomMod = default, float zoomRate = default) { Pan = pan; PanMod = panMod; Fit = fit; Select = select; SelectCancel = selectCancel; SelectMod = selectMod; SelectHorzMod = selectHorzMod; SelectVertMod = selectVertMod; Menu = menu; OverrideMod = overrideMod; ZoomMod = zoomMod; ZoomRate = zoomRate; } /// /// To be documented. /// public unsafe void Destroy() { fixed (ImPlotInputMap* @this = &this) { ImPlot.DestroyNative(@this); } } } /// /// To be documented. /// #if NET5_0_OR_GREATER [DebuggerDisplay("{DebuggerDisplay,nq}")] #endif public unsafe struct ImPlotInputMapPtr : IEquatable { public ImPlotInputMapPtr(ImPlotInputMap* handle) { Handle = handle; } public ImPlotInputMap* Handle; public bool IsNull => Handle == null; public static ImPlotInputMapPtr Null => new ImPlotInputMapPtr(null); public ImPlotInputMap this[int index] { get => Handle[index]; set => Handle[index] = value; } public static implicit operator ImPlotInputMapPtr(ImPlotInputMap* handle) => new ImPlotInputMapPtr(handle); public static implicit operator ImPlotInputMap*(ImPlotInputMapPtr handle) => handle.Handle; public static bool operator ==(ImPlotInputMapPtr left, ImPlotInputMapPtr right) => left.Handle == right.Handle; public static bool operator !=(ImPlotInputMapPtr left, ImPlotInputMapPtr right) => left.Handle != right.Handle; public static bool operator ==(ImPlotInputMapPtr left, ImPlotInputMap* right) => left.Handle == right; public static bool operator !=(ImPlotInputMapPtr left, ImPlotInputMap* right) => left.Handle != right; public bool Equals(ImPlotInputMapPtr other) => Handle == other.Handle; /// public override bool Equals(object obj) => obj is ImPlotInputMapPtr handle && Equals(handle); /// public override int GetHashCode() => ((nuint)Handle).GetHashCode(); #if NET5_0_OR_GREATER private string DebuggerDisplay => string.Format("ImPlotInputMapPtr [0x{0}]", ((nuint)Handle).ToString("X")); #endif /// /// To be documented. /// public ref ImGuiMouseButton Pan => ref Unsafe.AsRef(&Handle->Pan); /// /// To be documented. /// public ref ImGuiModFlags PanMod => ref Unsafe.AsRef(&Handle->PanMod); /// /// To be documented. /// public ref ImGuiMouseButton Fit => ref Unsafe.AsRef(&Handle->Fit); /// /// To be documented. /// public ref ImGuiMouseButton Select => ref Unsafe.AsRef(&Handle->Select); /// /// To be documented. /// public ref ImGuiMouseButton SelectCancel => ref Unsafe.AsRef(&Handle->SelectCancel); /// /// To be documented. /// public ref ImGuiModFlags SelectMod => ref Unsafe.AsRef(&Handle->SelectMod); /// /// To be documented. /// public ref ImGuiModFlags SelectHorzMod => ref Unsafe.AsRef(&Handle->SelectHorzMod); /// /// To be documented. /// public ref ImGuiModFlags SelectVertMod => ref Unsafe.AsRef(&Handle->SelectVertMod); /// /// To be documented. /// public ref ImGuiMouseButton Menu => ref Unsafe.AsRef(&Handle->Menu); /// /// To be documented. /// public ref ImGuiModFlags OverrideMod => ref Unsafe.AsRef(&Handle->OverrideMod); /// /// To be documented. /// public ref ImGuiModFlags ZoomMod => ref Unsafe.AsRef(&Handle->ZoomMod); /// /// To be documented. /// public ref float ZoomRate => ref Unsafe.AsRef(&Handle->ZoomRate); /// /// To be documented. /// public unsafe void Destroy() { ImPlot.DestroyNative(Handle); } } }