// ------------------------------------------------------------------------------
//
// 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 ImGuiOldColumns
{
///
/// To be documented.
///
public uint ID;
///
/// To be documented.
///
public ImGuiOldColumnFlags Flags;
///
/// To be documented.
///
public byte IsFirstFrame;
///
/// To be documented.
///
public byte IsBeingResized;
///
/// To be documented.
///
public int Current;
///
/// To be documented.
///
public int Count;
///
/// To be documented.
///
public float OffMinX;
///
/// To be documented.
///
public float OffMaxX;
///
/// To be documented.
///
public float LineMinY;
///
/// To be documented.
///
public float LineMaxY;
///
/// To be documented.
///
public float HostCursorPosY;
///
/// To be documented.
///
public float HostCursorMaxPosX;
///
/// To be documented.
///
public ImRect HostInitialClipRect;
///
/// To be documented.
///
public ImRect HostBackupClipRect;
///
/// To be documented.
///
public ImRect HostBackupParentWorkRect;
///
/// To be documented.
///
public ImVector Columns;
///
/// To be documented.
///
public ImDrawListSplitter Splitter;
///
/// To be documented.
///
public unsafe ImGuiOldColumns(uint id = default, ImGuiOldColumnFlags flags = default, bool isFirstFrame = default, bool isBeingResized = default, int current = default, int count = default, float offMinX = default, float offMaxX = default, float lineMinY = default, float lineMaxY = default, float hostCursorPosY = default, float hostCursorMaxPosX = default, ImRect hostInitialClipRect = default, ImRect hostBackupClipRect = default, ImRect hostBackupParentWorkRect = default, ImVector columns = default, ImDrawListSplitter splitter = default)
{
ID = id;
Flags = flags;
IsFirstFrame = isFirstFrame ? (byte)1 : (byte)0;
IsBeingResized = isBeingResized ? (byte)1 : (byte)0;
Current = current;
Count = count;
OffMinX = offMinX;
OffMaxX = offMaxX;
LineMinY = lineMinY;
LineMaxY = lineMaxY;
HostCursorPosY = hostCursorPosY;
HostCursorMaxPosX = hostCursorMaxPosX;
HostInitialClipRect = hostInitialClipRect;
HostBackupClipRect = hostBackupClipRect;
HostBackupParentWorkRect = hostBackupParentWorkRect;
Columns = columns;
Splitter = splitter;
}
///
/// To be documented.
///
public unsafe void Destroy()
{
fixed (ImGuiOldColumns* @this = &this)
{
ImGui.DestroyNative(@this);
}
}
}
///
/// To be documented.
///
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImGuiOldColumnsPtr : IEquatable
{
public ImGuiOldColumnsPtr(ImGuiOldColumns* handle) { Handle = handle; }
public ImGuiOldColumns* Handle;
public bool IsNull => Handle == null;
public static ImGuiOldColumnsPtr Null => new ImGuiOldColumnsPtr(null);
public ImGuiOldColumns this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImGuiOldColumnsPtr(ImGuiOldColumns* handle) => new ImGuiOldColumnsPtr(handle);
public static implicit operator ImGuiOldColumns*(ImGuiOldColumnsPtr handle) => handle.Handle;
public static bool operator ==(ImGuiOldColumnsPtr left, ImGuiOldColumnsPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImGuiOldColumnsPtr left, ImGuiOldColumnsPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImGuiOldColumnsPtr left, ImGuiOldColumns* right) => left.Handle == right;
public static bool operator !=(ImGuiOldColumnsPtr left, ImGuiOldColumns* right) => left.Handle != right;
public bool Equals(ImGuiOldColumnsPtr other) => Handle == other.Handle;
///
public override bool Equals(object obj) => obj is ImGuiOldColumnsPtr handle && Equals(handle);
///
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImGuiOldColumnsPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
///
/// To be documented.
///
public ref uint ID => ref Unsafe.AsRef(&Handle->ID);
///
/// To be documented.
///
public ref ImGuiOldColumnFlags Flags => ref Unsafe.AsRef(&Handle->Flags);
///
/// To be documented.
///
public ref bool IsFirstFrame => ref Unsafe.AsRef(&Handle->IsFirstFrame);
///
/// To be documented.
///
public ref bool IsBeingResized => ref Unsafe.AsRef(&Handle->IsBeingResized);
///
/// To be documented.
///
public ref int Current => ref Unsafe.AsRef(&Handle->Current);
///
/// To be documented.
///
public ref int Count => ref Unsafe.AsRef(&Handle->Count);
///
/// To be documented.
///
public ref float OffMinX => ref Unsafe.AsRef(&Handle->OffMinX);
///
/// To be documented.
///
public ref float OffMaxX => ref Unsafe.AsRef(&Handle->OffMaxX);
///
/// To be documented.
///
public ref float LineMinY => ref Unsafe.AsRef(&Handle->LineMinY);
///
/// To be documented.
///
public ref float LineMaxY => ref Unsafe.AsRef(&Handle->LineMaxY);
///
/// To be documented.
///
public ref float HostCursorPosY => ref Unsafe.AsRef(&Handle->HostCursorPosY);
///
/// To be documented.
///
public ref float HostCursorMaxPosX => ref Unsafe.AsRef(&Handle->HostCursorMaxPosX);
///
/// To be documented.
///
public ref ImRect HostInitialClipRect => ref Unsafe.AsRef(&Handle->HostInitialClipRect);
///
/// To be documented.
///
public ref ImRect HostBackupClipRect => ref Unsafe.AsRef(&Handle->HostBackupClipRect);
///
/// To be documented.
///
public ref ImRect HostBackupParentWorkRect => ref Unsafe.AsRef(&Handle->HostBackupParentWorkRect);
///
/// To be documented.
///
public ref ImVector Columns => ref Unsafe.AsRef>(&Handle->Columns);
///
/// To be documented.
///
public ref ImDrawListSplitter Splitter => ref Unsafe.AsRef(&Handle->Splitter);
///
/// To be documented.
///
public unsafe void Destroy()
{
ImGui.DestroyNative(Handle);
}
}
}