mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
Implement AutoUtf8Buffer
This commit is contained in:
parent
51a20300d8
commit
11aef2f4d6
20 changed files with 926 additions and 232 deletions
|
|
@ -1,8 +1,10 @@
|
|||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Dalamud.Bindings.ImGui;
|
||||
|
||||
public unsafe partial struct ImGuiInputTextCallbackData
|
||||
{
|
||||
public void InsertChars(int pos, AutoUtf8Buffer text)
|
||||
public void InsertChars(int pos, [InterpolatedStringHandlerArgument] AutoUtf8Buffer text)
|
||||
{
|
||||
fixed (ImGuiInputTextCallbackData* thisPtr = &this)
|
||||
ImGui.InsertChars(thisPtr, pos, text);
|
||||
|
|
@ -11,5 +13,5 @@ public unsafe partial struct ImGuiInputTextCallbackData
|
|||
|
||||
public partial struct ImGuiInputTextCallbackDataPtr
|
||||
{
|
||||
public void InsertChars(int pos, AutoUtf8Buffer text) => ImGui.InsertChars(this, pos, text);
|
||||
public void InsertChars(int pos, [InterpolatedStringHandlerArgument] AutoUtf8Buffer text) => ImGui.InsertChars(this, pos, text);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue