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
|
|
@ -1,5 +1,4 @@
|
|||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Dalamud.Bindings.ImGui;
|
||||
|
||||
|
|
@ -11,7 +10,7 @@ public unsafe partial struct ImFont
|
|||
}
|
||||
|
||||
public readonly void RenderText(
|
||||
ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, AutoUtf8Buffer text,
|
||||
ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, Utf8Buffer text,
|
||||
float wrapWidth = 0.0f, bool cpuFineClip = false)
|
||||
{
|
||||
fixed (ImFont* thisPtr =
|
||||
|
|
@ -21,11 +20,11 @@ public unsafe partial struct ImFont
|
|||
|
||||
public partial struct ImFontPtr
|
||||
{
|
||||
public readonly int CalcWordWrapPositionA(float scale, AutoUtf8Buffer text, float wrapWidth) =>
|
||||
public readonly int CalcWordWrapPositionA(float scale, Utf8Buffer text, float wrapWidth) =>
|
||||
ImGui.CalcWordWrapPositionA(this, scale, text, wrapWidth);
|
||||
|
||||
public readonly void RenderText(
|
||||
ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, AutoUtf8Buffer text,
|
||||
ImDrawListPtr drawList, float size, Vector2 pos, uint col, Vector4 clipRect, Utf8Buffer text,
|
||||
float wrapWidth = 0.0f, bool cpuFineClip = false) => ImGui.RenderText(
|
||||
this,
|
||||
drawList,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue