mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
* wip2 * Implement AutoUtf8Buffer * reformat * Work on manual bindings * restructure * Name scripts properly * Update utility functions to use ImU8String * add overloads * Add more overloads * Use ImGuiWindow from gen, support AddCallback * Use LibraryImport for custom ImGuiNative functinos * Make manual overloads for string-returning functinos * Make all overloads with self as its first parameter extension methods * Fix overload resolution by removing unnecessary * in => scoped in * Fix compilation errors
48 lines
2.1 KiB
C#
48 lines
2.1 KiB
C#
// ------------------------------------------------------------------------------
|
|
// <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.InteropServices;
|
|
using HexaGen.Runtime;
|
|
using System.Numerics;
|
|
|
|
namespace Dalamud.Bindings.ImGui
|
|
{
|
|
/// <summary>
|
|
/// To be documented.
|
|
/// </summary>
|
|
#if NET5_0_OR_GREATER
|
|
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
|
#endif
|
|
public readonly unsafe partial struct ImTextureID : IEquatable<ImTextureID>
|
|
{
|
|
public ImTextureID(ulong handle) { Handle = handle; }
|
|
public ImTextureID(nint handle) { Handle = (ulong)handle; }
|
|
public ImTextureID(void* handle) { Handle = (ulong)handle; }
|
|
public ulong Handle { get; }
|
|
public bool IsNull => Handle == 0;
|
|
public static ImTextureID Null => default;
|
|
public static implicit operator ImTextureID(ulong handle) => new ImTextureID(handle);
|
|
public static bool operator ==(ImTextureID left, ImTextureID right) => left.Handle == right.Handle;
|
|
public static bool operator !=(ImTextureID left, ImTextureID right) => left.Handle != right.Handle;
|
|
public static bool operator ==(ImTextureID left, nint right) => left.Handle == (ulong)right;
|
|
public static bool operator !=(ImTextureID left, nint right) => left.Handle != (ulong)right;
|
|
public static bool operator ==(ImTextureID left, ulong right) => left.Handle == right;
|
|
public static bool operator !=(ImTextureID left, ulong right) => left.Handle != right;
|
|
public bool Equals(ImTextureID other) => Handle == other.Handle;
|
|
/// <inheritdoc/>
|
|
public override bool Equals(object obj) => obj is ImTextureID handle && Equals(handle);
|
|
/// <inheritdoc/>
|
|
public override int GetHashCode() => Handle.GetHashCode();
|
|
#if NET5_0_OR_GREATER
|
|
private string DebuggerDisplay => string.Format("ImTextureID [0x{0}]", Handle.ToString("X"));
|
|
#endif
|
|
}
|
|
}
|