// ------------------------------------------------------------------------------
//
// 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 ImGuiGroupData
{
///
/// To be documented.
///
public uint WindowID;
///
/// To be documented.
///
public Vector2 BackupCursorPos;
///
/// To be documented.
///
public Vector2 BackupCursorMaxPos;
///
/// To be documented.
///
public ImVec1 BackupIndent;
///
/// To be documented.
///
public ImVec1 BackupGroupOffset;
///
/// To be documented.
///
public Vector2 BackupCurrLineSize;
///
/// To be documented.
///
public float BackupCurrLineTextBaseOffset;
///
/// To be documented.
///
public uint BackupActiveIdIsAlive;
///
/// To be documented.
///
public byte BackupActiveIdPreviousFrameIsAlive;
///
/// To be documented.
///
public byte BackupHoveredIdIsAlive;
///
/// To be documented.
///
public byte EmitItem;
///
/// To be documented.
///
public unsafe ImGuiGroupData(uint windowId = default, Vector2 backupCursorPos = default, Vector2 backupCursorMaxPos = default, ImVec1 backupIndent = default, ImVec1 backupGroupOffset = default, Vector2 backupCurrLineSize = default, float backupCurrLineTextBaseOffset = default, uint backupActiveIdIsAlive = default, bool backupActiveIdPreviousFrameIsAlive = default, bool backupHoveredIdIsAlive = default, bool emitItem = default)
{
WindowID = windowId;
BackupCursorPos = backupCursorPos;
BackupCursorMaxPos = backupCursorMaxPos;
BackupIndent = backupIndent;
BackupGroupOffset = backupGroupOffset;
BackupCurrLineSize = backupCurrLineSize;
BackupCurrLineTextBaseOffset = backupCurrLineTextBaseOffset;
BackupActiveIdIsAlive = backupActiveIdIsAlive;
BackupActiveIdPreviousFrameIsAlive = backupActiveIdPreviousFrameIsAlive ? (byte)1 : (byte)0;
BackupHoveredIdIsAlive = backupHoveredIdIsAlive ? (byte)1 : (byte)0;
EmitItem = emitItem ? (byte)1 : (byte)0;
}
}
///
/// To be documented.
///
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImGuiGroupDataPtr : IEquatable
{
public ImGuiGroupDataPtr(ImGuiGroupData* handle) { Handle = handle; }
public ImGuiGroupData* Handle;
public bool IsNull => Handle == null;
public static ImGuiGroupDataPtr Null => new ImGuiGroupDataPtr(null);
public ImGuiGroupData this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImGuiGroupDataPtr(ImGuiGroupData* handle) => new ImGuiGroupDataPtr(handle);
public static implicit operator ImGuiGroupData*(ImGuiGroupDataPtr handle) => handle.Handle;
public static bool operator ==(ImGuiGroupDataPtr left, ImGuiGroupDataPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImGuiGroupDataPtr left, ImGuiGroupDataPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImGuiGroupDataPtr left, ImGuiGroupData* right) => left.Handle == right;
public static bool operator !=(ImGuiGroupDataPtr left, ImGuiGroupData* right) => left.Handle != right;
public bool Equals(ImGuiGroupDataPtr other) => Handle == other.Handle;
///
public override bool Equals(object obj) => obj is ImGuiGroupDataPtr handle && Equals(handle);
///
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImGuiGroupDataPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
///
/// To be documented.
///
public ref uint WindowID => ref Unsafe.AsRef(&Handle->WindowID);
///
/// To be documented.
///
public ref Vector2 BackupCursorPos => ref Unsafe.AsRef(&Handle->BackupCursorPos);
///
/// To be documented.
///
public ref Vector2 BackupCursorMaxPos => ref Unsafe.AsRef(&Handle->BackupCursorMaxPos);
///
/// To be documented.
///
public ref ImVec1 BackupIndent => ref Unsafe.AsRef(&Handle->BackupIndent);
///
/// To be documented.
///
public ref ImVec1 BackupGroupOffset => ref Unsafe.AsRef(&Handle->BackupGroupOffset);
///
/// To be documented.
///
public ref Vector2 BackupCurrLineSize => ref Unsafe.AsRef(&Handle->BackupCurrLineSize);
///
/// To be documented.
///
public ref float BackupCurrLineTextBaseOffset => ref Unsafe.AsRef(&Handle->BackupCurrLineTextBaseOffset);
///
/// To be documented.
///
public ref uint BackupActiveIdIsAlive => ref Unsafe.AsRef(&Handle->BackupActiveIdIsAlive);
///
/// To be documented.
///
public ref bool BackupActiveIdPreviousFrameIsAlive => ref Unsafe.AsRef(&Handle->BackupActiveIdPreviousFrameIsAlive);
///
/// To be documented.
///
public ref bool BackupHoveredIdIsAlive => ref Unsafe.AsRef(&Handle->BackupHoveredIdIsAlive);
///
/// To be documented.
///
public ref bool EmitItem => ref Unsafe.AsRef(&Handle->EmitItem);
}
}