Work on manual bindings

This commit is contained in:
Soreepeong 2025-07-23 01:18:48 +09:00
parent f391ac57d3
commit 3381ac1c7d
37 changed files with 2596 additions and 48072 deletions

View file

@ -0,0 +1,17 @@
namespace Dalamud.Bindings.ImGui;
public unsafe partial struct ImGuiPayload
{
public readonly Span<byte> DataSpan => new(this.Data, this.DataSize);
public readonly bool IsDataType(Utf8Buffer type)
{
fixed (ImGuiPayload* ptr = &this)
return ImGui.IsDataType(ptr, type);
}
}
public partial struct ImGuiPayloadPtr
{
public readonly bool IsDataType(Utf8Buffer type) => ImGui.IsDataType(this, type);
}