mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
191 lines
4.9 KiB
C#
191 lines
4.9 KiB
C#
// <auto-generated/>
|
|
|
|
using HexaGen.Runtime;
|
|
using System;
|
|
using System.Diagnostics;
|
|
using System.Numerics;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Dalamud.Bindings.ImGui;
|
|
|
|
public unsafe partial struct ImFont
|
|
{
|
|
public unsafe void AddGlyph(ImFontConfig* srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
ImGuiNative.AddGlyph(@this, srcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX);
|
|
}
|
|
}
|
|
public unsafe void AddGlyph(ref ImFontConfig srcCfg, ushort c, int textureIndex, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advanceX)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
fixed (ImFontConfig* psrcCfg = &srcCfg)
|
|
{
|
|
ImGuiNative.AddGlyph(@this, (ImFontConfig*)psrcCfg, c, textureIndex, x0, y0, x1, y1, u0, v0, u1, v1, advanceX);
|
|
}
|
|
}
|
|
}
|
|
public unsafe void AddKerningPair(ushort leftC, ushort rightC, float distanceAdjustment)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
ImGuiNative.AddKerningPair(@this, leftC, rightC, distanceAdjustment);
|
|
}
|
|
}
|
|
public unsafe void AddRemapChar(ushort dst, ushort src, bool overwriteDst)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
ImGuiNative.AddRemapChar(@this, dst, src, overwriteDst ? (byte)1 : (byte)0);
|
|
}
|
|
}
|
|
public unsafe void AddRemapChar(ushort dst, ushort src)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
ImGuiNative.AddRemapChar(@this, dst, src, (byte)(1));
|
|
}
|
|
}
|
|
public unsafe void BuildLookupTable()
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
ImGuiNative.BuildLookupTable(@this);
|
|
}
|
|
}
|
|
public unsafe void ClearOutputData()
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
ImGuiNative.ClearOutputData(@this);
|
|
}
|
|
}
|
|
public unsafe void Destroy()
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
ImGuiNative.Destroy(@this);
|
|
}
|
|
}
|
|
public unsafe ImFontGlyph* FindGlyph(ushort c)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
ImFontGlyph* ret = ImGuiNative.FindGlyph(@this, c);
|
|
return ret;
|
|
}
|
|
}
|
|
public unsafe ImFontGlyph* FindGlyphNoFallback(ushort c)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
ImFontGlyph* ret = ImGuiNative.FindGlyphNoFallback(@this, c);
|
|
return ret;
|
|
}
|
|
}
|
|
public unsafe float GetCharAdvance(ushort c)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
float ret = ImGuiNative.GetCharAdvance(@this, c);
|
|
return ret;
|
|
}
|
|
}
|
|
public unsafe byte* GetDebugName()
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
byte* ret = ImGuiNative.GetDebugName(@this);
|
|
return ret;
|
|
}
|
|
}
|
|
public unsafe string GetDebugNameS()
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
string ret = Utils.DecodeStringUTF8(ImGuiNative.GetDebugName(@this));
|
|
return ret;
|
|
}
|
|
}
|
|
public unsafe float GetDistanceAdjustmentForPair(ushort leftC, ushort rightC)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
float ret = ImGuiNative.GetDistanceAdjustmentForPair(@this, leftC, rightC);
|
|
return ret;
|
|
}
|
|
}
|
|
public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ImFontGlyphHotData* rightCInfo)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData(@this, leftC, rightCInfo);
|
|
return ret;
|
|
}
|
|
}
|
|
public unsafe float GetDistanceAdjustmentForPairFromHotData(ushort leftC, ref ImFontGlyphHotData rightCInfo)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
fixed (ImFontGlyphHotData* prightCInfo = &rightCInfo)
|
|
{
|
|
float ret = ImGuiNative.GetDistanceAdjustmentForPairFromHotData(@this, leftC, (ImFontGlyphHotData*)prightCInfo);
|
|
return ret;
|
|
}
|
|
}
|
|
}
|
|
public unsafe void GrowIndex(int newSize)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
ImGuiNative.GrowIndex(@this, newSize);
|
|
}
|
|
}
|
|
public unsafe bool IsGlyphRangeUnused(uint cBegin, uint cLast)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
byte ret = ImGuiNative.IsGlyphRangeUnused(@this, cBegin, cLast);
|
|
return ret != 0;
|
|
}
|
|
}
|
|
public unsafe bool IsLoaded()
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
byte ret = ImGuiNative.IsLoaded(@this);
|
|
return ret != 0;
|
|
}
|
|
}
|
|
public unsafe void RenderChar(ImDrawListPtr drawList, float size, Vector2 pos, uint col, ushort c)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
ImGuiNative.RenderChar(@this, drawList, size, pos, col, c);
|
|
}
|
|
}
|
|
public unsafe void RenderChar(ref ImDrawList drawList, float size, Vector2 pos, uint col, ushort c)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
fixed (ImDrawList* pdrawList = &drawList)
|
|
{
|
|
ImGuiNative.RenderChar(@this, (ImDrawList*)pdrawList, size, pos, col, c);
|
|
}
|
|
}
|
|
}
|
|
public unsafe void SetGlyphVisible(ushort c, bool visible)
|
|
{
|
|
fixed (ImFont* @this = &this)
|
|
{
|
|
ImGuiNative.SetGlyphVisible(@this, c, visible ? (byte)1 : (byte)0);
|
|
}
|
|
}
|
|
}
|
|
// DISCARDED: CalcWordWrapPositionA
|
|
// DISCARDED: CalcWordWrapPositionAS
|
|
// DISCARDED: RenderText
|
|
|