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
33
imgui/Dalamud.Bindings.ImGui/Custom/ImGuiIO.Custom.cs
Normal file
33
imgui/Dalamud.Bindings.ImGui/Custom/ImGuiIO.Custom.cs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
using System.Text;
|
||||
|
||||
namespace Dalamud.Bindings.ImGui;
|
||||
|
||||
public unsafe partial struct ImGuiIO
|
||||
{
|
||||
public void AddInputCharacter(char c)
|
||||
{
|
||||
fixed (ImGuiIO* thisPtr = &this)
|
||||
ImGui.AddInputCharacter(thisPtr, c);
|
||||
}
|
||||
|
||||
public void AddInputCharacter(Rune c)
|
||||
{
|
||||
fixed (ImGuiIO* thisPtr = &this)
|
||||
ImGui.AddInputCharacter(thisPtr, c);
|
||||
}
|
||||
|
||||
public void AddInputCharacters(Utf8Buffer str)
|
||||
{
|
||||
fixed (ImGuiIO* thisPtr = &this)
|
||||
ImGui.AddInputCharacters(thisPtr, str);
|
||||
}
|
||||
}
|
||||
|
||||
public partial struct ImGuiIOPtr
|
||||
{
|
||||
public void AddInputCharacter(char c) => ImGui.AddInputCharacter(this, c);
|
||||
|
||||
public void AddInputCharacter(Rune c) => ImGui.AddInputCharacter(this, c);
|
||||
|
||||
public void AddInputCharacters(Utf8Buffer str) => ImGui.AddInputCharacters(this, str);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue