Dalamud/imgui/Dalamud.Bindings.ImGui/Custom/ImGuiWindow.Custom.cs
2025-07-26 22:33:38 +09:00

26 lines
762 B
C#

namespace Dalamud.Bindings.ImGui;
public unsafe partial struct ImGuiWindow
{
public readonly uint GetID(ImU8String str)
{
fixed (ImGuiWindow* thisPtr = &this) return ImGuiP.GetID(thisPtr, str);
}
public readonly uint GetID(void* ptr)
{
fixed (ImGuiWindow* thisPtr = &this) return ImGuiP.GetID(thisPtr, ptr);
}
public readonly uint GetID(int n)
{
fixed (ImGuiWindow* thisPtr = &this) return ImGuiP.GetID(thisPtr, n);
}
}
public unsafe partial struct ImGuiWindowPtr
{
public readonly uint GetID(ImU8String str) => ImGuiP.GetID(this.Handle, str);
public readonly uint GetID(void* ptr) => ImGuiP.GetID(this.Handle, ptr);
public readonly uint GetID(int n) => ImGuiP.GetID(this.Handle, n);
}