mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Merge pull request #2352 from Soreepeong/fix/imgui
ImGui bindings fixes
This commit is contained in:
commit
4413634508
231 changed files with 537 additions and 614 deletions
|
|
@ -1,19 +1,18 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
using Dalamud.Bindings.ImGui;
|
||||
using Dalamud.Memory;
|
||||
|
||||
using Serilog;
|
||||
|
||||
using TerraFX.Interop.Windows;
|
||||
|
||||
using static Dalamud.Interface.ImGuiBackend.Helpers.ImGuiViewportHelpers;
|
||||
|
||||
using static TerraFX.Interop.Windows.Windows;
|
||||
|
||||
using ERROR = TerraFX.Interop.Windows.ERROR;
|
||||
|
|
@ -245,7 +244,7 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
|
|||
return default(LRESULT);
|
||||
}
|
||||
|
||||
if (ImGui.IsAnyItemActive())
|
||||
if (!ImGui.IsWindowHovered(ImGuiHoveredFlags.AnyWindow))
|
||||
ImGui.ClearWindowFocus();
|
||||
|
||||
break;
|
||||
|
|
@ -585,51 +584,50 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
|
|||
|
||||
private struct ViewportHandler : IDisposable
|
||||
{
|
||||
[SuppressMessage("ReSharper", "CollectionNeverQueried.Local", Justification = "Keeping references alive")]
|
||||
private readonly List<object> delegateReferences = new();
|
||||
private static readonly string WindowClassName = typeof(ViewportHandler).FullName!;
|
||||
|
||||
private Win32InputHandler input;
|
||||
private nint classNamePtr;
|
||||
|
||||
private bool wantUpdateMonitors = true;
|
||||
|
||||
public ViewportHandler(Win32InputHandler input)
|
||||
{
|
||||
this.input = input;
|
||||
this.classNamePtr = Marshal.StringToHGlobalUni("ImGui Platform");
|
||||
|
||||
var pio = ImGui.GetPlatformIO();
|
||||
pio.PlatformCreateWindow = this.RegisterFunctionPointer<CreateWindowDelegate>(this.OnCreateWindow);
|
||||
pio.PlatformDestroyWindow = this.RegisterFunctionPointer<DestroyWindowDelegate>(this.OnDestroyWindow);
|
||||
pio.PlatformShowWindow = this.RegisterFunctionPointer<ShowWindowDelegate>(this.OnShowWindow);
|
||||
pio.PlatformSetWindowPos = this.RegisterFunctionPointer<SetWindowPosDelegate>(this.OnSetWindowPos);
|
||||
pio.PlatformGetWindowPos = this.RegisterFunctionPointer<GetWindowPosDelegate>(this.OnGetWindowPos);
|
||||
pio.PlatformSetWindowSize = this.RegisterFunctionPointer<SetWindowSizeDelegate>(this.OnSetWindowSize);
|
||||
pio.PlatformGetWindowSize = this.RegisterFunctionPointer<GetWindowSizeDelegate>(this.OnGetWindowSize);
|
||||
pio.PlatformSetWindowFocus = this.RegisterFunctionPointer<SetWindowFocusDelegate>(this.OnSetWindowFocus);
|
||||
pio.PlatformGetWindowFocus = this.RegisterFunctionPointer<GetWindowFocusDelegate>(this.OnGetWindowFocus);
|
||||
pio.PlatformGetWindowMinimized =
|
||||
this.RegisterFunctionPointer<GetWindowMinimizedDelegate>(this.OnGetWindowMinimized);
|
||||
pio.PlatformSetWindowTitle = this.RegisterFunctionPointer<SetWindowTitleDelegate>(this.OnSetWindowTitle);
|
||||
pio.PlatformSetWindowAlpha = this.RegisterFunctionPointer<SetWindowAlphaDelegate>(this.OnSetWindowAlpha);
|
||||
pio.PlatformUpdateWindow = this.RegisterFunctionPointer<UpdateWindowDelegate>(this.OnUpdateWindow);
|
||||
pio.PlatformCreateWindow = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, void>)&OnCreateWindow;
|
||||
pio.PlatformDestroyWindow = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, void>)&OnDestroyWindow;
|
||||
pio.PlatformShowWindow = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, void>)&OnShowWindow;
|
||||
pio.PlatformSetWindowPos = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, Vector2, void>)&OnSetWindowPos;
|
||||
pio.PlatformGetWindowPos = (delegate* unmanaged[Cdecl]<Vector2*, ImGuiViewportPtr, Vector2*>)&OnGetWindowPos;
|
||||
pio.PlatformSetWindowSize = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, Vector2, void>)&OnSetWindowSize;
|
||||
pio.PlatformGetWindowSize = (delegate* unmanaged[Cdecl]<Vector2*, ImGuiViewportPtr, Vector2*>)&OnGetWindowSize;
|
||||
pio.PlatformSetWindowFocus = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, void>)&OnSetWindowFocus;
|
||||
pio.PlatformGetWindowFocus = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, byte>)&OnGetWindowFocus;
|
||||
pio.PlatformGetWindowMinimized = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, byte>)&OnGetWindowMinimized;
|
||||
pio.PlatformSetWindowTitle = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, byte*, void>)&OnSetWindowTitle;
|
||||
pio.PlatformSetWindowAlpha = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, float, void>)&OnSetWindowAlpha;
|
||||
pio.PlatformUpdateWindow = (delegate* unmanaged[Cdecl]<ImGuiViewportPtr, void>)&OnUpdateWindow;
|
||||
// pio.Platform_SetImeInputPos = this.RegisterFunctionPointer<SetImeInputPosDelegate>(this.OnSetImeInputPos);
|
||||
// pio.Platform_GetWindowDpiScale = this.RegisterFunctionPointer<GetWindowDpiScaleDelegate>(this.OnGetWindowDpiScale);
|
||||
// pio.Platform_ChangedViewport = this.RegisterFunctionPointer<ChangedViewportDelegate>(this.OnChangedViewport);
|
||||
|
||||
fixed (char* windowClassNamePtr = WindowClassName)
|
||||
{
|
||||
var wcex = new WNDCLASSEXW
|
||||
{
|
||||
cbSize = (uint)sizeof(WNDCLASSEXW),
|
||||
style = CS.CS_HREDRAW | CS.CS_VREDRAW,
|
||||
hInstance = GetModuleHandleW(null),
|
||||
hInstance = (HINSTANCE)Marshal.GetHINSTANCE(typeof(ViewportHandler).Module),
|
||||
hbrBackground = (HBRUSH)(1 + COLOR.COLOR_BACKGROUND),
|
||||
lpfnWndProc = (delegate* unmanaged<HWND, uint, WPARAM, LPARAM, LRESULT>)Marshal
|
||||
.GetFunctionPointerForDelegate(this.input.wndProcDelegate),
|
||||
lpszClassName = (ushort*)this.classNamePtr,
|
||||
lpszClassName = (ushort*)windowClassNamePtr,
|
||||
};
|
||||
|
||||
if (RegisterClassExW(&wcex) == 0)
|
||||
throw Marshal.GetExceptionForHR(Marshal.GetHRForLastWin32Error()) ?? new("RegisterClassEx Fail");
|
||||
}
|
||||
|
||||
// Register main window handle (which is owned by the main application, not by us)
|
||||
// This is mostly for simplicity and consistency, so that our code (e.g. mouse handling etc.) can use same logic for main and secondary viewports.
|
||||
|
|
@ -657,11 +655,11 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
|
|||
ImGui.GetPlatformIO().Handle->Monitors = default;
|
||||
}
|
||||
|
||||
if (this.classNamePtr != 0)
|
||||
fixed (char* windowClassNamePtr = WindowClassName)
|
||||
{
|
||||
UnregisterClassW((ushort*)this.classNamePtr, GetModuleHandleW(null));
|
||||
Marshal.FreeHGlobal(this.classNamePtr);
|
||||
this.classNamePtr = 0;
|
||||
UnregisterClassW(
|
||||
(ushort*)windowClassNamePtr,
|
||||
(HINSTANCE)Marshal.GetHINSTANCE(typeof(ViewportHandler).Module));
|
||||
}
|
||||
|
||||
pio.PlatformCreateWindow = null;
|
||||
|
|
@ -750,13 +748,8 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
|
|||
}
|
||||
}
|
||||
|
||||
private void* RegisterFunctionPointer<T>(T obj)
|
||||
{
|
||||
this.delegateReferences.Add(obj);
|
||||
return Marshal.GetFunctionPointerForDelegate(obj).ToPointer();
|
||||
}
|
||||
|
||||
private void OnCreateWindow(ImGuiViewportPtr viewport)
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])]
|
||||
private static void OnCreateWindow(ImGuiViewportPtr viewport)
|
||||
{
|
||||
var data = (ImGuiViewportDataWin32*)Marshal.AllocHGlobal(Marshal.SizeOf<ImGuiViewportDataWin32>());
|
||||
viewport.PlatformUserData = data;
|
||||
|
|
@ -784,12 +777,12 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
|
|||
};
|
||||
AdjustWindowRectEx(&rect, (uint)data->DwStyle, false, (uint)data->DwExStyle);
|
||||
|
||||
fixed (char* pwszWindowTitle = "Untitled")
|
||||
fixed (char* windowClassNamePtr = WindowClassName)
|
||||
{
|
||||
data->Hwnd = CreateWindowExW(
|
||||
(uint)data->DwExStyle,
|
||||
(ushort*)this.classNamePtr,
|
||||
(ushort*)pwszWindowTitle,
|
||||
(ushort*)windowClassNamePtr,
|
||||
(ushort*)windowClassNamePtr,
|
||||
(uint)data->DwStyle,
|
||||
rect.left,
|
||||
rect.top,
|
||||
|
|
@ -797,8 +790,8 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
|
|||
rect.bottom - rect.top,
|
||||
parentWindow,
|
||||
default,
|
||||
GetModuleHandleW(null),
|
||||
default);
|
||||
(HINSTANCE)Marshal.GetHINSTANCE(typeof(ViewportHandler).Module),
|
||||
null);
|
||||
}
|
||||
|
||||
data->HwndOwned = true;
|
||||
|
|
@ -806,7 +799,8 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
|
|||
viewport.PlatformHandle = viewport.PlatformHandleRaw = data->Hwnd;
|
||||
}
|
||||
|
||||
private void OnDestroyWindow(ImGuiViewportPtr viewport)
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])]
|
||||
private static void OnDestroyWindow(ImGuiViewportPtr viewport)
|
||||
{
|
||||
// This is also called on the main viewport for some reason, and we never set that viewport's PlatformUserData
|
||||
if (viewport.PlatformUserData == null) return;
|
||||
|
|
@ -817,7 +811,11 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
|
|||
{
|
||||
// Transfer capture so if we started dragging from a window that later disappears, we'll still receive the MOUSEUP event.
|
||||
ReleaseCapture();
|
||||
SetCapture(this.input.hWnd);
|
||||
if (viewport.ParentViewportId != 0)
|
||||
{
|
||||
var parentViewport = ImGui.FindViewportByID(viewport.ParentViewportId);
|
||||
SetCapture((HWND)parentViewport.PlatformHandle);
|
||||
}
|
||||
}
|
||||
|
||||
if (data->Hwnd != nint.Zero && data->HwndOwned)
|
||||
|
|
@ -836,7 +834,8 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
|
|||
viewport.PlatformUserData = viewport.PlatformHandle = null;
|
||||
}
|
||||
|
||||
private void OnShowWindow(ImGuiViewportPtr viewport)
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])]
|
||||
private static void OnShowWindow(ImGuiViewportPtr viewport)
|
||||
{
|
||||
var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData;
|
||||
|
||||
|
|
@ -846,7 +845,8 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
|
|||
ShowWindow(data->Hwnd, SW.SW_SHOW);
|
||||
}
|
||||
|
||||
private void OnUpdateWindow(ImGuiViewportPtr viewport)
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])]
|
||||
private static void OnUpdateWindow(ImGuiViewportPtr viewport)
|
||||
{
|
||||
// (Optional) Update Win32 style if it changed _after_ creation.
|
||||
// Generally they won't change unless configuration flags are changed, but advanced uses (such as manually rewriting viewport flags) make this useful.
|
||||
|
|
@ -907,17 +907,18 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
|
|||
}
|
||||
}
|
||||
|
||||
private Vector2* OnGetWindowPos(Vector2* returnStorage, ImGuiViewportPtr viewport)
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])]
|
||||
private static Vector2* OnGetWindowPos(Vector2* returnValueStorage, ImGuiViewportPtr viewport)
|
||||
{
|
||||
var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData;
|
||||
var pt = new POINT { x = 0, y = 0 };
|
||||
ClientToScreen(data->Hwnd, &pt);
|
||||
returnStorage->X = pt.x;
|
||||
returnStorage->Y = pt.y;
|
||||
return returnStorage;
|
||||
*returnValueStorage = new(pt.x, pt.y);
|
||||
return returnValueStorage;
|
||||
}
|
||||
|
||||
private void OnSetWindowPos(ImGuiViewportPtr viewport, Vector2 pos)
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])]
|
||||
private static void OnSetWindowPos(ImGuiViewportPtr viewport, Vector2 pos)
|
||||
{
|
||||
var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData;
|
||||
var rect = new RECT((int)pos.X, (int)pos.Y, (int)pos.X, (int)pos.Y);
|
||||
|
|
@ -934,17 +935,18 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
|
|||
SWP.SWP_NOACTIVATE);
|
||||
}
|
||||
|
||||
private Vector2* OnGetWindowSize(Vector2* returnStorage, ImGuiViewportPtr viewport)
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])]
|
||||
private static Vector2* OnGetWindowSize(Vector2* returnValueStorage, ImGuiViewportPtr viewport)
|
||||
{
|
||||
var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData;
|
||||
RECT rect;
|
||||
GetClientRect(data->Hwnd, &rect);
|
||||
returnStorage->X = rect.right - rect.left;
|
||||
returnStorage->Y = rect.bottom - rect.top;
|
||||
return returnStorage;
|
||||
*returnValueStorage = new(rect.right - rect.left, rect.bottom - rect.top);
|
||||
return returnValueStorage;
|
||||
}
|
||||
|
||||
private void OnSetWindowSize(ImGuiViewportPtr viewport, Vector2 size)
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])]
|
||||
private static void OnSetWindowSize(ImGuiViewportPtr viewport, Vector2 size)
|
||||
{
|
||||
var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData;
|
||||
|
||||
|
|
@ -962,7 +964,8 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
|
|||
SWP.SWP_NOACTIVATE);
|
||||
}
|
||||
|
||||
private void OnSetWindowFocus(ImGuiViewportPtr viewport)
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])]
|
||||
private static void OnSetWindowFocus(ImGuiViewportPtr viewport)
|
||||
{
|
||||
var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData;
|
||||
|
||||
|
|
@ -971,26 +974,30 @@ internal sealed unsafe partial class Win32InputHandler : IImGuiInputHandler
|
|||
SetFocus(data->Hwnd);
|
||||
}
|
||||
|
||||
private bool OnGetWindowFocus(ImGuiViewportPtr viewport)
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])]
|
||||
private static byte OnGetWindowFocus(ImGuiViewportPtr viewport)
|
||||
{
|
||||
var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData;
|
||||
return GetForegroundWindow() == data->Hwnd;
|
||||
return GetForegroundWindow() == data->Hwnd ? (byte)1 : (byte)0;
|
||||
}
|
||||
|
||||
private bool OnGetWindowMinimized(ImGuiViewportPtr viewport)
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])]
|
||||
private static byte OnGetWindowMinimized(ImGuiViewportPtr viewport)
|
||||
{
|
||||
var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData;
|
||||
return IsIconic(data->Hwnd);
|
||||
return IsIconic(data->Hwnd) ? (byte)1 : (byte)0;
|
||||
}
|
||||
|
||||
private void OnSetWindowTitle(ImGuiViewportPtr viewport, string title)
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])]
|
||||
private static void OnSetWindowTitle(ImGuiViewportPtr viewport, byte* title)
|
||||
{
|
||||
var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData;
|
||||
fixed (char* pwszTitle = title)
|
||||
fixed (char* pwszTitle = MemoryHelper.ReadStringNullTerminated((nint)title))
|
||||
SetWindowTextW(data->Hwnd, (ushort*)pwszTitle);
|
||||
}
|
||||
|
||||
private void OnSetWindowAlpha(ImGuiViewportPtr viewport, float alpha)
|
||||
[UnmanagedCallersOnly(CallConvs = [typeof(CallConvCdecl)])]
|
||||
private static void OnSetWindowAlpha(ImGuiViewportPtr viewport, float alpha)
|
||||
{
|
||||
var data = (ImGuiViewportDataWin32*)viewport.PlatformUserData;
|
||||
var style = GetWindowLongW(data->Hwnd, GWL.GWL_EXSTYLE);
|
||||
|
|
|
|||
|
|
@ -223,15 +223,15 @@ internal unsafe partial class Dx11Renderer : IImGuiRenderer
|
|||
ImDrawDataPtr drawData,
|
||||
bool clearRenderTarget)
|
||||
{
|
||||
// Do nothing when there's nothing to draw
|
||||
if (drawData.IsNull || !drawData.Valid)
|
||||
return;
|
||||
|
||||
// Avoid rendering when minimized
|
||||
if (drawData.DisplaySize.X <= 0 || drawData.DisplaySize.Y <= 0)
|
||||
return;
|
||||
|
||||
using var oldState = new D3D11DeviceContextStateBackup(this.featureLevel, this.context.Get());
|
||||
|
||||
// Setup desired DX state
|
||||
this.SetupRenderState(drawData);
|
||||
|
||||
// Set up render target
|
||||
this.context.Get()->OMSetRenderTargets(1, &renderTargetView, null);
|
||||
if (clearRenderTarget)
|
||||
{
|
||||
|
|
@ -239,17 +239,17 @@ internal unsafe partial class Dx11Renderer : IImGuiRenderer
|
|||
this.context.Get()->ClearRenderTargetView(renderTargetView, (float*)&color);
|
||||
}
|
||||
|
||||
if (!drawData.Valid || drawData.CmdListsCount == 0)
|
||||
return;
|
||||
|
||||
// Stop if there's nothing to draw
|
||||
var cmdLists = new Span<ImDrawListPtr>(drawData.Handle->CmdLists, drawData.Handle->CmdListsCount);
|
||||
if (cmdLists.IsEmpty)
|
||||
return;
|
||||
|
||||
// Create and grow vertex/index buffers if needed
|
||||
if (this.vertexBufferSize < drawData.TotalVtxCount)
|
||||
this.vertexBuffer.Dispose();
|
||||
if (this.vertexBuffer.Get() is null)
|
||||
{
|
||||
this.vertexBufferSize = drawData.TotalVtxCount + 5000;
|
||||
this.vertexBufferSize = drawData.TotalVtxCount + 8192;
|
||||
var desc = new D3D11_BUFFER_DESC(
|
||||
(uint)(sizeof(ImDrawVert) * this.vertexBufferSize),
|
||||
(uint)D3D11_BIND_FLAG.D3D11_BIND_VERTEX_BUFFER,
|
||||
|
|
@ -264,7 +264,7 @@ internal unsafe partial class Dx11Renderer : IImGuiRenderer
|
|||
this.indexBuffer.Dispose();
|
||||
if (this.indexBuffer.Get() is null)
|
||||
{
|
||||
this.indexBufferSize = drawData.TotalIdxCount + 5000;
|
||||
this.indexBufferSize = drawData.TotalIdxCount + 16384;
|
||||
var desc = new D3D11_BUFFER_DESC(
|
||||
(uint)(sizeof(ushort) * this.indexBufferSize),
|
||||
(uint)D3D11_BIND_FLAG.D3D11_BIND_INDEX_BUFFER,
|
||||
|
|
@ -275,9 +275,14 @@ internal unsafe partial class Dx11Renderer : IImGuiRenderer
|
|||
this.indexBuffer.Attach(buffer);
|
||||
}
|
||||
|
||||
// Upload vertex/index data into a single contiguous GPU buffer
|
||||
using var oldState = new D3D11DeviceContextStateBackup(this.featureLevel, this.context.Get());
|
||||
|
||||
// Setup desired DX state
|
||||
this.SetupRenderState(drawData);
|
||||
|
||||
try
|
||||
{
|
||||
// Upload vertex/index data into a single contiguous GPU buffer.
|
||||
var vertexData = default(D3D11_MAPPED_SUBRESOURCE);
|
||||
var indexData = default(D3D11_MAPPED_SUBRESOURCE);
|
||||
this.context.Get()->Map(
|
||||
|
|
@ -306,26 +311,18 @@ internal unsafe partial class Dx11Renderer : IImGuiRenderer
|
|||
targetVertices = targetVertices[vertices.Length..];
|
||||
targetIndices = targetIndices[indices.Length..];
|
||||
}
|
||||
}
|
||||
finally
|
||||
{
|
||||
this.context.Get()->Unmap((ID3D11Resource*)this.vertexBuffer.Get(), 0);
|
||||
this.context.Get()->Unmap((ID3D11Resource*)this.indexBuffer.Get(), 0);
|
||||
}
|
||||
|
||||
// Setup orthographic projection matrix into our constant buffer.
|
||||
// Our visible imgui space lies from DisplayPos (LT) to DisplayPos+DisplaySize (RB).
|
||||
// DisplayPos is (0,0) for single viewport apps.
|
||||
try
|
||||
{
|
||||
var data = default(D3D11_MAPPED_SUBRESOURCE);
|
||||
var constantBufferData = default(D3D11_MAPPED_SUBRESOURCE);
|
||||
this.context.Get()->Map(
|
||||
(ID3D11Resource*)this.vertexConstantBuffer.Get(),
|
||||
0,
|
||||
D3D11_MAP.D3D11_MAP_WRITE_DISCARD,
|
||||
0,
|
||||
&data).ThrowOnError();
|
||||
*(Matrix4x4*)data.pData = Matrix4x4.CreateOrthographicOffCenter(
|
||||
&constantBufferData).ThrowOnError();
|
||||
*(Matrix4x4*)constantBufferData.pData = Matrix4x4.CreateOrthographicOffCenter(
|
||||
drawData.DisplayPos.X,
|
||||
drawData.DisplayPos.X + drawData.DisplaySize.X,
|
||||
drawData.DisplayPos.Y + drawData.DisplaySize.Y,
|
||||
|
|
@ -335,6 +332,8 @@ internal unsafe partial class Dx11Renderer : IImGuiRenderer
|
|||
}
|
||||
finally
|
||||
{
|
||||
this.context.Get()->Unmap((ID3D11Resource*)this.vertexBuffer.Get(), 0);
|
||||
this.context.Get()->Unmap((ID3D11Resource*)this.indexBuffer.Get(), 0);
|
||||
this.context.Get()->Unmap((ID3D11Resource*)this.vertexConstantBuffer.Get(), 0);
|
||||
}
|
||||
|
||||
|
|
@ -343,8 +342,6 @@ internal unsafe partial class Dx11Renderer : IImGuiRenderer
|
|||
var vertexOffset = 0;
|
||||
var indexOffset = 0;
|
||||
var clipOff = new Vector4(drawData.DisplayPos, drawData.DisplayPos.X, drawData.DisplayPos.Y);
|
||||
this.context.Get()->PSSetShader(this.pixelShader, null, 0);
|
||||
this.context.Get()->PSSetSamplers(0, 1, this.sampler.GetAddressOf());
|
||||
foreach (ref var cmdList in cmdLists)
|
||||
{
|
||||
var cmds = new ImVectorWrapper<ImDrawCmd>(cmdList.Handle->CmdBuffer.ToUntyped());
|
||||
|
|
@ -467,7 +464,8 @@ internal unsafe partial class Dx11Renderer : IImGuiRenderer
|
|||
buffer = this.vertexConstantBuffer.Get();
|
||||
ctx->VSSetConstantBuffers(0, 1, &buffer);
|
||||
|
||||
// PS handled later
|
||||
ctx->PSSetShader(this.pixelShader, null, 0);
|
||||
ctx->PSSetSamplers(0, 1, this.sampler.GetAddressOf());
|
||||
|
||||
ctx->GSSetShader(null, null, 0);
|
||||
ctx->HSSetShader(null, null, 0);
|
||||
|
|
|
|||
|
|
@ -2,11 +2,9 @@
|
|||
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Text.Unicode;
|
||||
|
|
@ -209,8 +207,7 @@ internal sealed unsafe class DalamudIme : IInternalDisposableService
|
|||
}
|
||||
}
|
||||
|
||||
private static ImGuiInputTextStatePtr GetInputTextState() =>
|
||||
(ImGuiInputTextState*)((nint)ImGui.GetCurrentContext().Handle + 0x4588);
|
||||
private static ImGuiInputTextStatePtr GetInputTextState() => new(&ImGui.GetCurrentContext().Handle->InputTextState);
|
||||
|
||||
private static (string String, bool Supported) ToUcs2(char* data, int nc = -1)
|
||||
{
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -203,8 +203,8 @@ public static partial class ImGuiHelpers
|
|||
ImGui.SetClipboardText(textCopy.IsNull ? text.Span : textCopy.Span);
|
||||
}
|
||||
|
||||
text.Dispose();
|
||||
textCopy.Dispose();
|
||||
text.Recycle();
|
||||
textCopy.Recycle();
|
||||
}
|
||||
|
||||
/// <summary>Draws a SeString.</summary>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ $sourcePaths = (
|
|||
# replace "ImGuiKey.GamepadStart"
|
||||
$tmp = Get-Content -Path "$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\Generated\Enums\ImGuiKeyPrivate.cs" -Raw
|
||||
$tmp = $tmp.Replace("unchecked((int)GamepadStart)", "unchecked((int)ImGuiKey.GamepadStart)").Trim()
|
||||
$tmp | Set-Content -Path "$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\Generated\Enums\ImGuiKeyPrivate.cs" -Encoding ascii
|
||||
$tmp.Trim() | Set-Content -Path "$PSScriptRoot\imgui\Dalamud.Bindings.ImGui\Generated\Enums\ImGuiKeyPrivate.cs" -Encoding ascii
|
||||
|
||||
try
|
||||
{
|
||||
|
|
@ -141,7 +141,9 @@ foreach ($sourcePath in $sourcePaths)
|
|||
$husks = $husks.Replace("public unsafe struct", "public unsafe partial struct")
|
||||
$husks = $referNativeFunctionQualified.Replace($husks, '$1Native.$2')
|
||||
$husks = "// <auto-generated/>`r`n`r`nusing $([string]::Join(";`r`nusing ", $imports) );`r`n`r`n$husks"
|
||||
$husks | Set-Content -Path "$targetPath.gen.cs" -Encoding ascii
|
||||
$husks = $husks -ireplace 'nuint (ActiveIdUsingKeyInputMask)', 'ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN $1'
|
||||
$husks = $husks.Replace('ref Unsafe.AsRef<nuint>(&Handle->ActiveIdUsingKeyInputMask)', 'ref Unsafe.AsRef<ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN>(&Handle->ActiveIdUsingKeyInputMask)')
|
||||
$husks.Trim() | Set-Content -Path "$targetPath.gen.cs" -Encoding ascii
|
||||
}
|
||||
|
||||
$husks = "// <auto-generated/>`r`n`r`nusing $([string]::Join(";`r`nusing ", $imports) );`r`n`r`nnamespace $namespace;`r`n`r`n"
|
||||
|
|
@ -286,6 +288,6 @@ foreach ($sourcePath in $sourcePaths)
|
|||
$null = $sb.Append("// DISCARDED: $methodName`r`n")
|
||||
}
|
||||
|
||||
$sb.ToString() | Set-Content -Path "$targetPath/$className.gen.cs" -Encoding ascii
|
||||
$sb.ToString().Trim() | Set-Content -Path "$targetPath/$className.gen.cs" -Encoding ascii
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8896,4 +8896,3 @@ public unsafe partial class ImGui
|
|||
// DISCARDED: internal static byte VSliderFloatNative(byte* label, Vector2 size, float* v, float vMin, float vMax, byte* format, ImGuiSliderFlags flags)
|
||||
// DISCARDED: internal static byte VSliderIntNative(byte* label, Vector2 size, int* v, int vMin, int vMax, byte* format, ImGuiSliderFlags flags)
|
||||
// DISCARDED: internal static byte VSliderScalarNative(byte* label, Vector2 size, ImGuiDataType dataType, void* pData, void* pMin, void* pMax, byte* format, ImGuiSliderFlags flags)
|
||||
|
||||
|
|
|
|||
|
|
@ -4828,4 +4828,3 @@ public unsafe partial class ImGuiNative
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImBitArrayImGuiKeyNamedKeyCOUNTLessImGuiKeyNamedKeyBEGIN
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImBitVector
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImBitVectorPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImChunkStreamImGuiTableSettings
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImChunkStreamImGuiWindowSettings
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,4 +47,3 @@ public unsafe partial struct ImColor
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,4 +32,3 @@ public unsafe partial struct ImColorPtr
|
|||
ImGuiNative.SetHSV(Handle, h, s, v, (float)(1.0f));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImDrawChannel
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImDrawChannelPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,4 +27,3 @@ public unsafe partial struct ImDrawCmd
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImDrawCmdHeader
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,4 +21,3 @@ public unsafe partial struct ImDrawCmdPtr
|
|||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -40,4 +40,3 @@ public unsafe partial struct ImDrawData
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImDrawDataBuilder
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImDrawDataBuilderPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,4 +28,3 @@ public unsafe partial struct ImDrawDataPtr
|
|||
ImGuiNative.ScaleClipRects(Handle, fbScale);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -756,4 +756,3 @@ public unsafe partial struct ImDrawList
|
|||
}
|
||||
}
|
||||
// DISCARDED: AddText
|
||||
|
||||
|
|
|
|||
|
|
@ -441,4 +441,3 @@ public unsafe partial struct ImDrawListPtr
|
|||
}
|
||||
}
|
||||
// DISCARDED: AddText
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImDrawListPtrPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ public unsafe partial struct ImDrawListSharedData
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ public unsafe partial struct ImDrawListSharedDataPtr
|
|||
ImGuiNative.Destroy(Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -84,4 +84,3 @@ public unsafe partial struct ImDrawListSplitter
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -57,4 +57,3 @@ public unsafe partial struct ImDrawListSplitterPtr
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImDrawVert
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImDrawVertPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -174,4 +174,3 @@ public unsafe partial struct ImFont
|
|||
// DISCARDED: GetDebugName
|
||||
// DISCARDED: GetDebugNameS
|
||||
// DISCARDED: RenderText
|
||||
|
||||
|
|
|
|||
|
|
@ -1829,4 +1829,3 @@ public unsafe partial struct ImFontAtlas
|
|||
// DISCARDED: AddFontFromMemoryCompressedBase85TTF
|
||||
// DISCARDED: AddFontFromMemoryCompressedTTF
|
||||
// DISCARDED: AddFontFromMemoryTTF
|
||||
|
||||
|
|
|
|||
|
|
@ -27,4 +27,3 @@ public unsafe partial struct ImFontAtlasCustomRect
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,4 +21,3 @@ public unsafe partial struct ImFontAtlasCustomRectPtr
|
|||
return ret != 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1409,4 +1409,3 @@ public unsafe partial struct ImFontAtlasPtr
|
|||
// DISCARDED: AddFontFromMemoryCompressedBase85TTF
|
||||
// DISCARDED: AddFontFromMemoryCompressedTTF
|
||||
// DISCARDED: AddFontFromMemoryTTF
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImFontAtlasTexture
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImFontAtlasTexturePtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImFontBuilderIO
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImFontBuilderIOPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ public unsafe partial struct ImFontConfig
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ public unsafe partial struct ImFontConfigPtr
|
|||
ImGuiNative.Destroy(Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImFontGlyph
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImFontGlyphHotData
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImFontGlyphHotDataPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImFontGlyphPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -73,4 +73,3 @@ public unsafe partial struct ImFontGlyphRangesBuilder
|
|||
}
|
||||
}
|
||||
// DISCARDED: AddText
|
||||
|
||||
|
|
|
|||
|
|
@ -49,4 +49,3 @@ public unsafe partial struct ImFontGlyphRangesBuilderPtr
|
|||
}
|
||||
}
|
||||
// DISCARDED: AddText
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImFontKerningPair
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImFontKerningPairPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -114,4 +114,3 @@ public unsafe partial struct ImFontPtr
|
|||
// DISCARDED: GetDebugName
|
||||
// DISCARDED: GetDebugNameS
|
||||
// DISCARDED: RenderText
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImFontPtrPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiColorMod
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiColorModPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ public unsafe partial struct ImGuiComboPreviewData
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ public unsafe partial struct ImGuiComboPreviewDataPtr
|
|||
ImGuiNative.Destroy(Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ public unsafe partial struct ImGuiContext
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ public unsafe partial struct ImGuiContextHook
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ public unsafe partial struct ImGuiContextHookPtr
|
|||
ImGuiNative.Destroy(Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ public unsafe partial struct ImGuiContextPtr
|
|||
ImGuiNative.Destroy(Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiDataTypeInfo
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiDataTypeInfoPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiDataTypeTempStorage
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ public unsafe partial struct ImGuiDockContext
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ public unsafe partial struct ImGuiDockContextPtr
|
|||
ImGuiNative.Destroy(Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiDockNode
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiDockNodePtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiDockNodeSettings
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiDockNodeSettingsPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiDockRequest
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiDockRequestPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiGroupData
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiGroupDataPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -106,4 +106,3 @@ public unsafe partial struct ImGuiIO
|
|||
// DISCARDED: AddInputCharacter
|
||||
// DISCARDED: AddInputCharactersUTF8
|
||||
// DISCARDED: AddInputCharacterUTF16
|
||||
|
||||
|
|
|
|||
|
|
@ -67,4 +67,3 @@ public unsafe partial struct ImGuiIOPtr
|
|||
// DISCARDED: AddInputCharacter
|
||||
// DISCARDED: AddInputCharactersUTF8
|
||||
// DISCARDED: AddInputCharacterUTF16
|
||||
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ public unsafe partial struct ImGuiInputEvent
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiInputEventAppFocused
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiInputEventKey
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiInputEventMouseButton
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiInputEventMousePos
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiInputEventMouseViewport
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiInputEventMouseWheel
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ public unsafe partial struct ImGuiInputEventPtr
|
|||
ImGuiNative.Destroy(Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiInputEventText
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -49,4 +49,3 @@ public unsafe partial struct ImGuiInputTextCallbackData
|
|||
}
|
||||
}
|
||||
// DISCARDED: InsertChars
|
||||
|
||||
|
|
|
|||
|
|
@ -34,4 +34,3 @@ public unsafe partial struct ImGuiInputTextCallbackDataPtr
|
|||
}
|
||||
}
|
||||
// DISCARDED: InsertChars
|
||||
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ public unsafe partial struct ImGuiInputTextState
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ public unsafe partial struct ImGuiInputTextStatePtr
|
|||
ImGuiNative.Destroy(Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiKeyData
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiKeyDataPtr
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ public unsafe partial struct ImGuiLastItemData
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ public unsafe partial struct ImGuiLastItemDataPtr
|
|||
ImGuiNative.Destroy(Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -55,4 +55,3 @@ public unsafe partial struct ImGuiListClipper
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -19,4 +19,3 @@ public unsafe partial struct ImGuiListClipperData
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,4 +16,3 @@ public unsafe partial struct ImGuiListClipperDataPtr
|
|||
ImGuiNative.Destroy(Handle);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,4 +37,3 @@ public unsafe partial struct ImGuiListClipperPtr
|
|||
return ret != 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,3 @@ namespace Dalamud.Bindings.ImGui;
|
|||
public unsafe partial struct ImGuiListClipperRange
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue