mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
Regen cimgui
This commit is contained in:
parent
b8ce2d4001
commit
eaadd3d136
72 changed files with 4643 additions and 4510 deletions
|
|
@ -18,6 +18,36 @@ namespace Dalamud.Bindings.ImGui
|
|||
public unsafe partial class ImGui
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// To be documented.
|
||||
/// </summary>
|
||||
public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format, ImGuiSliderFlags flags)
|
||||
{
|
||||
fixed (byte* plabel = &label)
|
||||
{
|
||||
fixed (byte* pformat = &format)
|
||||
{
|
||||
byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, flags);
|
||||
return ret != 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To be documented.
|
||||
/// </summary>
|
||||
public static bool DragFloat(ref byte label, float* v, float vSpeed, float vMin, float vMax, ref byte format)
|
||||
{
|
||||
fixed (byte* plabel = &label)
|
||||
{
|
||||
fixed (byte* pformat = &format)
|
||||
{
|
||||
byte ret = DragFloatNative((byte*)plabel, v, vSpeed, vMin, vMax, (byte*)pformat, (ImGuiSliderFlags)(0));
|
||||
return ret != 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To be documented.
|
||||
/// </summary>
|
||||
|
|
@ -4603,9 +4633,9 @@ namespace Dalamud.Bindings.ImGui
|
|||
internal static byte DragFloat2Native(byte* label, float* v, float vSpeed, float vMin, float vMax, byte* format, ImGuiSliderFlags flags)
|
||||
{
|
||||
#if NET5_0_OR_GREATER
|
||||
return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, float, byte*, ImGuiSliderFlags, byte>)funcTable[164])(label, v, vSpeed, vMin, vMax, format, flags);
|
||||
return ((delegate* unmanaged[Cdecl]<byte*, float*, float, float, float, byte*, ImGuiSliderFlags, byte>)funcTable[165])(label, v, vSpeed, vMin, vMax, format, flags);
|
||||
#else
|
||||
return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, float, float, nint, ImGuiSliderFlags, byte>)funcTable[164])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags);
|
||||
return (byte)((delegate* unmanaged[Cdecl]<nint, nint, float, float, float, nint, ImGuiSliderFlags, byte>)funcTable[165])((nint)label, (nint)v, vSpeed, vMin, vMax, (nint)format, flags);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -4992,41 +5022,5 @@ namespace Dalamud.Bindings.ImGui
|
|||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To be documented.
|
||||
/// </summary>
|
||||
public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed)
|
||||
{
|
||||
fixed (byte* plabel = label)
|
||||
{
|
||||
bool ret = DragFloat2((byte*)plabel, v, vSpeed, (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0));
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To be documented.
|
||||
/// </summary>
|
||||
public static bool DragFloat2(ReadOnlySpan<byte> label, float* v)
|
||||
{
|
||||
fixed (byte* plabel = label)
|
||||
{
|
||||
bool ret = DragFloat2((byte*)plabel, v, (float)(1.0f), (float)(0.0f), (float)(0.0f), (string)"%.3f", (ImGuiSliderFlags)(0));
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To be documented.
|
||||
/// </summary>
|
||||
public static bool DragFloat2(ReadOnlySpan<byte> label, float* v, float vSpeed, float vMin, byte* format)
|
||||
{
|
||||
fixed (byte* plabel = label)
|
||||
{
|
||||
byte ret = DragFloat2Native((byte*)plabel, v, vSpeed, vMin, (float)(0.0f), format, (ImGuiSliderFlags)(0));
|
||||
return ret != 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue