Dalamud/imgui/Dalamud.Bindings.ImGui/Generated/Structs/ImVec2Ih.cs
2025-07-20 01:24:17 +02:00

118 lines
2.9 KiB
C#
Generated

// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using HexaGen.Runtime;
using System.Numerics;
namespace Dalamud.Bindings.ImGui
{
/// <summary>
/// To be documented.
/// </summary>
[StructLayout(LayoutKind.Sequential)]
public partial struct ImVec2Ih
{
/// <summary>
/// To be documented.
/// </summary>
public short X;
/// <summary>
/// To be documented.
/// </summary>
public short Y;
/// <summary>
/// To be documented.
/// </summary>
public unsafe ImVec2Ih(short x = default, short y = default)
{
X = x;
Y = y;
}
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
fixed (ImVec2Ih* @this = &this)
{
ImGui.DestroyNative(@this);
}
}
}
/// <summary>
/// To be documented.
/// </summary>
#if NET5_0_OR_GREATER
[DebuggerDisplay("{DebuggerDisplay,nq}")]
#endif
public unsafe struct ImVec2IhPtr : IEquatable<ImVec2IhPtr>
{
public ImVec2IhPtr(ImVec2Ih* handle) { Handle = handle; }
public ImVec2Ih* Handle;
public bool IsNull => Handle == null;
public static ImVec2IhPtr Null => new ImVec2IhPtr(null);
public ImVec2Ih this[int index] { get => Handle[index]; set => Handle[index] = value; }
public static implicit operator ImVec2IhPtr(ImVec2Ih* handle) => new ImVec2IhPtr(handle);
public static implicit operator ImVec2Ih*(ImVec2IhPtr handle) => handle.Handle;
public static bool operator ==(ImVec2IhPtr left, ImVec2IhPtr right) => left.Handle == right.Handle;
public static bool operator !=(ImVec2IhPtr left, ImVec2IhPtr right) => left.Handle != right.Handle;
public static bool operator ==(ImVec2IhPtr left, ImVec2Ih* right) => left.Handle == right;
public static bool operator !=(ImVec2IhPtr left, ImVec2Ih* right) => left.Handle != right;
public bool Equals(ImVec2IhPtr other) => Handle == other.Handle;
/// <inheritdoc/>
public override bool Equals(object obj) => obj is ImVec2IhPtr handle && Equals(handle);
/// <inheritdoc/>
public override int GetHashCode() => ((nuint)Handle).GetHashCode();
#if NET5_0_OR_GREATER
private string DebuggerDisplay => string.Format("ImVec2IhPtr [0x{0}]", ((nuint)Handle).ToString("X"));
#endif
/// <summary>
/// To be documented.
/// </summary>
public ref short X => ref Unsafe.AsRef<short>(&Handle->X);
/// <summary>
/// To be documented.
/// </summary>
public ref short Y => ref Unsafe.AsRef<short>(&Handle->Y);
/// <summary>
/// To be documented.
/// </summary>
public unsafe void Destroy()
{
ImGui.DestroyNative(Handle);
}
}
}