// ------------------------------------------------------------------------------ // // 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 ImPlotStyle { /// /// To be documented. /// public float LineWeight; /// /// To be documented. /// public int Marker; /// /// To be documented. /// public float MarkerSize; /// /// To be documented. /// public float MarkerWeight; /// /// To be documented. /// public float FillAlpha; /// /// To be documented. /// public float ErrorBarSize; /// /// To be documented. /// public float ErrorBarWeight; /// /// To be documented. /// public float DigitalBitHeight; /// /// To be documented. /// public float DigitalBitGap; /// /// To be documented. /// public float PlotBorderSize; /// /// To be documented. /// public float MinorAlpha; /// /// To be documented. /// public Vector2 MajorTickLen; /// /// To be documented. /// public Vector2 MinorTickLen; /// /// To be documented. /// public Vector2 MajorTickSize; /// /// To be documented. /// public Vector2 MinorTickSize; /// /// To be documented. /// public Vector2 MajorGridSize; /// /// To be documented. /// public Vector2 MinorGridSize; /// /// To be documented. /// public Vector2 PlotPadding; /// /// To be documented. /// public Vector2 LabelPadding; /// /// To be documented. /// public Vector2 LegendPadding; /// /// To be documented. /// public Vector2 LegendInnerPadding; /// /// To be documented. /// public Vector2 LegendSpacing; /// /// To be documented. /// public Vector2 MousePosPadding; /// /// To be documented. /// public Vector2 AnnotationPadding; /// /// To be documented. /// public Vector2 FitPadding; /// /// To be documented. /// public Vector2 PlotDefaultSize; /// /// To be documented. /// public Vector2 PlotMinSize; /// /// To be documented. /// public Vector4 Colors_0; public Vector4 Colors_1; public Vector4 Colors_2; public Vector4 Colors_3; public Vector4 Colors_4; public Vector4 Colors_5; public Vector4 Colors_6; public Vector4 Colors_7; public Vector4 Colors_8; public Vector4 Colors_9; public Vector4 Colors_10; public Vector4 Colors_11; public Vector4 Colors_12; public Vector4 Colors_13; public Vector4 Colors_14; public Vector4 Colors_15; public Vector4 Colors_16; public Vector4 Colors_17; public Vector4 Colors_18; public Vector4 Colors_19; public Vector4 Colors_20; /// /// To be documented. /// public ImPlotColormap Colormap; /// /// To be documented. /// public byte UseLocalTime; /// /// To be documented. /// public byte UseISO8601; /// /// To be documented. /// public byte Use24HourClock; /// /// To be documented. /// public unsafe ImPlotStyle(float lineWeight = default, int marker = default, float markerSize = default, float markerWeight = default, float fillAlpha = default, float errorBarSize = default, float errorBarWeight = default, float digitalBitHeight = default, float digitalBitGap = default, float plotBorderSize = default, float minorAlpha = default, Vector2 majorTickLen = default, Vector2 minorTickLen = default, Vector2 majorTickSize = default, Vector2 minorTickSize = default, Vector2 majorGridSize = default, Vector2 minorGridSize = default, Vector2 plotPadding = default, Vector2 labelPadding = default, Vector2 legendPadding = default, Vector2 legendInnerPadding = default, Vector2 legendSpacing = default, Vector2 mousePosPadding = default, Vector2 annotationPadding = default, Vector2 fitPadding = default, Vector2 plotDefaultSize = default, Vector2 plotMinSize = default, Vector4* colors = default, ImPlotColormap colormap = default, bool useLocalTime = default, bool useIso8601 = default, bool use24HourClock = default) { LineWeight = lineWeight; Marker = marker; MarkerSize = markerSize; MarkerWeight = markerWeight; FillAlpha = fillAlpha; ErrorBarSize = errorBarSize; ErrorBarWeight = errorBarWeight; DigitalBitHeight = digitalBitHeight; DigitalBitGap = digitalBitGap; PlotBorderSize = plotBorderSize; MinorAlpha = minorAlpha; MajorTickLen = majorTickLen; MinorTickLen = minorTickLen; MajorTickSize = majorTickSize; MinorTickSize = minorTickSize; MajorGridSize = majorGridSize; MinorGridSize = minorGridSize; PlotPadding = plotPadding; LabelPadding = labelPadding; LegendPadding = legendPadding; LegendInnerPadding = legendInnerPadding; LegendSpacing = legendSpacing; MousePosPadding = mousePosPadding; AnnotationPadding = annotationPadding; FitPadding = fitPadding; PlotDefaultSize = plotDefaultSize; PlotMinSize = plotMinSize; if (colors != default(Vector4*)) { Colors_0 = colors[0]; Colors_1 = colors[1]; Colors_2 = colors[2]; Colors_3 = colors[3]; Colors_4 = colors[4]; Colors_5 = colors[5]; Colors_6 = colors[6]; Colors_7 = colors[7]; Colors_8 = colors[8]; Colors_9 = colors[9]; Colors_10 = colors[10]; Colors_11 = colors[11]; Colors_12 = colors[12]; Colors_13 = colors[13]; Colors_14 = colors[14]; Colors_15 = colors[15]; Colors_16 = colors[16]; Colors_17 = colors[17]; Colors_18 = colors[18]; Colors_19 = colors[19]; Colors_20 = colors[20]; } Colormap = colormap; UseLocalTime = useLocalTime ? (byte)1 : (byte)0; UseISO8601 = useIso8601 ? (byte)1 : (byte)0; Use24HourClock = use24HourClock ? (byte)1 : (byte)0; } /// /// To be documented. /// public unsafe ImPlotStyle(float lineWeight = default, int marker = default, float markerSize = default, float markerWeight = default, float fillAlpha = default, float errorBarSize = default, float errorBarWeight = default, float digitalBitHeight = default, float digitalBitGap = default, float plotBorderSize = default, float minorAlpha = default, Vector2 majorTickLen = default, Vector2 minorTickLen = default, Vector2 majorTickSize = default, Vector2 minorTickSize = default, Vector2 majorGridSize = default, Vector2 minorGridSize = default, Vector2 plotPadding = default, Vector2 labelPadding = default, Vector2 legendPadding = default, Vector2 legendInnerPadding = default, Vector2 legendSpacing = default, Vector2 mousePosPadding = default, Vector2 annotationPadding = default, Vector2 fitPadding = default, Vector2 plotDefaultSize = default, Vector2 plotMinSize = default, Span colors = default, ImPlotColormap colormap = default, bool useLocalTime = default, bool useIso8601 = default, bool use24HourClock = default) { LineWeight = lineWeight; Marker = marker; MarkerSize = markerSize; MarkerWeight = markerWeight; FillAlpha = fillAlpha; ErrorBarSize = errorBarSize; ErrorBarWeight = errorBarWeight; DigitalBitHeight = digitalBitHeight; DigitalBitGap = digitalBitGap; PlotBorderSize = plotBorderSize; MinorAlpha = minorAlpha; MajorTickLen = majorTickLen; MinorTickLen = minorTickLen; MajorTickSize = majorTickSize; MinorTickSize = minorTickSize; MajorGridSize = majorGridSize; MinorGridSize = minorGridSize; PlotPadding = plotPadding; LabelPadding = labelPadding; LegendPadding = legendPadding; LegendInnerPadding = legendInnerPadding; LegendSpacing = legendSpacing; MousePosPadding = mousePosPadding; AnnotationPadding = annotationPadding; FitPadding = fitPadding; PlotDefaultSize = plotDefaultSize; PlotMinSize = plotMinSize; if (colors != default(Span)) { Colors_0 = colors[0]; Colors_1 = colors[1]; Colors_2 = colors[2]; Colors_3 = colors[3]; Colors_4 = colors[4]; Colors_5 = colors[5]; Colors_6 = colors[6]; Colors_7 = colors[7]; Colors_8 = colors[8]; Colors_9 = colors[9]; Colors_10 = colors[10]; Colors_11 = colors[11]; Colors_12 = colors[12]; Colors_13 = colors[13]; Colors_14 = colors[14]; Colors_15 = colors[15]; Colors_16 = colors[16]; Colors_17 = colors[17]; Colors_18 = colors[18]; Colors_19 = colors[19]; Colors_20 = colors[20]; } Colormap = colormap; UseLocalTime = useLocalTime ? (byte)1 : (byte)0; UseISO8601 = useIso8601 ? (byte)1 : (byte)0; Use24HourClock = use24HourClock ? (byte)1 : (byte)0; } /// /// To be documented. /// public unsafe Span Colors { get { fixed (Vector4* p = &this.Colors_0) { return new Span(p, 21); } } } /// /// To be documented. /// public unsafe void Destroy() { fixed (ImPlotStyle* @this = &this) { ImPlot.DestroyNative(@this); } } } /// /// To be documented. /// #if NET5_0_OR_GREATER [DebuggerDisplay("{DebuggerDisplay,nq}")] #endif public unsafe struct ImPlotStylePtr : IEquatable { public ImPlotStylePtr(ImPlotStyle* handle) { Handle = handle; } public ImPlotStyle* Handle; public bool IsNull => Handle == null; public static ImPlotStylePtr Null => new ImPlotStylePtr(null); public ImPlotStyle this[int index] { get => Handle[index]; set => Handle[index] = value; } public static implicit operator ImPlotStylePtr(ImPlotStyle* handle) => new ImPlotStylePtr(handle); public static implicit operator ImPlotStyle*(ImPlotStylePtr handle) => handle.Handle; public static bool operator ==(ImPlotStylePtr left, ImPlotStylePtr right) => left.Handle == right.Handle; public static bool operator !=(ImPlotStylePtr left, ImPlotStylePtr right) => left.Handle != right.Handle; public static bool operator ==(ImPlotStylePtr left, ImPlotStyle* right) => left.Handle == right; public static bool operator !=(ImPlotStylePtr left, ImPlotStyle* right) => left.Handle != right; public bool Equals(ImPlotStylePtr other) => Handle == other.Handle; /// public override bool Equals(object obj) => obj is ImPlotStylePtr handle && Equals(handle); /// public override int GetHashCode() => ((nuint)Handle).GetHashCode(); #if NET5_0_OR_GREATER private string DebuggerDisplay => string.Format("ImPlotStylePtr [0x{0}]", ((nuint)Handle).ToString("X")); #endif /// /// To be documented. /// public ref float LineWeight => ref Unsafe.AsRef(&Handle->LineWeight); /// /// To be documented. /// public ref int Marker => ref Unsafe.AsRef(&Handle->Marker); /// /// To be documented. /// public ref float MarkerSize => ref Unsafe.AsRef(&Handle->MarkerSize); /// /// To be documented. /// public ref float MarkerWeight => ref Unsafe.AsRef(&Handle->MarkerWeight); /// /// To be documented. /// public ref float FillAlpha => ref Unsafe.AsRef(&Handle->FillAlpha); /// /// To be documented. /// public ref float ErrorBarSize => ref Unsafe.AsRef(&Handle->ErrorBarSize); /// /// To be documented. /// public ref float ErrorBarWeight => ref Unsafe.AsRef(&Handle->ErrorBarWeight); /// /// To be documented. /// public ref float DigitalBitHeight => ref Unsafe.AsRef(&Handle->DigitalBitHeight); /// /// To be documented. /// public ref float DigitalBitGap => ref Unsafe.AsRef(&Handle->DigitalBitGap); /// /// To be documented. /// public ref float PlotBorderSize => ref Unsafe.AsRef(&Handle->PlotBorderSize); /// /// To be documented. /// public ref float MinorAlpha => ref Unsafe.AsRef(&Handle->MinorAlpha); /// /// To be documented. /// public ref Vector2 MajorTickLen => ref Unsafe.AsRef(&Handle->MajorTickLen); /// /// To be documented. /// public ref Vector2 MinorTickLen => ref Unsafe.AsRef(&Handle->MinorTickLen); /// /// To be documented. /// public ref Vector2 MajorTickSize => ref Unsafe.AsRef(&Handle->MajorTickSize); /// /// To be documented. /// public ref Vector2 MinorTickSize => ref Unsafe.AsRef(&Handle->MinorTickSize); /// /// To be documented. /// public ref Vector2 MajorGridSize => ref Unsafe.AsRef(&Handle->MajorGridSize); /// /// To be documented. /// public ref Vector2 MinorGridSize => ref Unsafe.AsRef(&Handle->MinorGridSize); /// /// To be documented. /// public ref Vector2 PlotPadding => ref Unsafe.AsRef(&Handle->PlotPadding); /// /// To be documented. /// public ref Vector2 LabelPadding => ref Unsafe.AsRef(&Handle->LabelPadding); /// /// To be documented. /// public ref Vector2 LegendPadding => ref Unsafe.AsRef(&Handle->LegendPadding); /// /// To be documented. /// public ref Vector2 LegendInnerPadding => ref Unsafe.AsRef(&Handle->LegendInnerPadding); /// /// To be documented. /// public ref Vector2 LegendSpacing => ref Unsafe.AsRef(&Handle->LegendSpacing); /// /// To be documented. /// public ref Vector2 MousePosPadding => ref Unsafe.AsRef(&Handle->MousePosPadding); /// /// To be documented. /// public ref Vector2 AnnotationPadding => ref Unsafe.AsRef(&Handle->AnnotationPadding); /// /// To be documented. /// public ref Vector2 FitPadding => ref Unsafe.AsRef(&Handle->FitPadding); /// /// To be documented. /// public ref Vector2 PlotDefaultSize => ref Unsafe.AsRef(&Handle->PlotDefaultSize); /// /// To be documented. /// public ref Vector2 PlotMinSize => ref Unsafe.AsRef(&Handle->PlotMinSize); /// /// To be documented. /// public unsafe Span Colors { get { return new Span(&Handle->Colors_0, 21); } } /// /// To be documented. /// public ref ImPlotColormap Colormap => ref Unsafe.AsRef(&Handle->Colormap); /// /// To be documented. /// public ref bool UseLocalTime => ref Unsafe.AsRef(&Handle->UseLocalTime); /// /// To be documented. /// public ref bool UseISO8601 => ref Unsafe.AsRef(&Handle->UseISO8601); /// /// To be documented. /// public ref bool Use24HourClock => ref Unsafe.AsRef(&Handle->Use24HourClock); /// /// To be documented. /// public unsafe void Destroy() { ImPlot.DestroyNative(Handle); } } }