mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
Work on manual bindings
This commit is contained in:
parent
f391ac57d3
commit
3381ac1c7d
37 changed files with 2596 additions and 48072 deletions
17
imgui/Dalamud.Bindings.ImGui/Custom/ImGuiPayload.Custom.cs
Normal file
17
imgui/Dalamud.Bindings.ImGui/Custom/ImGuiPayload.Custom.cs
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue