parent
7ab250feb8
commit
2d1fc76b21
17 changed files with 5271 additions and 1966 deletions
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,14 @@ |
|||||||
|
namespace ImGuiNET |
||||||
|
{ |
||||||
|
[System.Flags] |
||||||
|
public enum ImGuiDockNodeFlags |
||||||
|
{ |
||||||
|
None = 0, |
||||||
|
KeepAliveOnly = 1, |
||||||
|
NoDockingInCentralNode = 4, |
||||||
|
PassthruCentralNode = 8, |
||||||
|
NoSplit = 16, |
||||||
|
NoResize = 32, |
||||||
|
AutoHideTabBar = 64, |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,76 @@ |
|||||||
|
using System; |
||||||
|
using System.Numerics; |
||||||
|
using System.Runtime.CompilerServices; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace ImGuiNET |
||||||
|
{ |
||||||
|
public unsafe partial struct ImGuiPlatformIO |
||||||
|
{ |
||||||
|
public IntPtr Platform_CreateWindow; |
||||||
|
public IntPtr Platform_DestroyWindow; |
||||||
|
public IntPtr Platform_ShowWindow; |
||||||
|
public IntPtr Platform_SetWindowPos; |
||||||
|
public IntPtr Platform_GetWindowPos; |
||||||
|
public IntPtr Platform_SetWindowSize; |
||||||
|
public IntPtr Platform_GetWindowSize; |
||||||
|
public IntPtr Platform_SetWindowFocus; |
||||||
|
public IntPtr Platform_GetWindowFocus; |
||||||
|
public IntPtr Platform_GetWindowMinimized; |
||||||
|
public IntPtr Platform_SetWindowTitle; |
||||||
|
public IntPtr Platform_SetWindowAlpha; |
||||||
|
public IntPtr Platform_UpdateWindow; |
||||||
|
public IntPtr Platform_RenderWindow; |
||||||
|
public IntPtr Platform_SwapBuffers; |
||||||
|
public IntPtr Platform_GetWindowDpiScale; |
||||||
|
public IntPtr Platform_OnChangedViewport; |
||||||
|
public IntPtr Platform_SetImeInputPos; |
||||||
|
public IntPtr Platform_CreateVkSurface; |
||||||
|
public IntPtr Renderer_CreateWindow; |
||||||
|
public IntPtr Renderer_DestroyWindow; |
||||||
|
public IntPtr Renderer_SetWindowSize; |
||||||
|
public IntPtr Renderer_RenderWindow; |
||||||
|
public IntPtr Renderer_SwapBuffers; |
||||||
|
public ImVector Monitors; |
||||||
|
public ImVector Viewports; |
||||||
|
} |
||||||
|
public unsafe partial struct ImGuiPlatformIOPtr |
||||||
|
{ |
||||||
|
public ImGuiPlatformIO* NativePtr { get; } |
||||||
|
public ImGuiPlatformIOPtr(ImGuiPlatformIO* nativePtr) => NativePtr = nativePtr; |
||||||
|
public ImGuiPlatformIOPtr(IntPtr nativePtr) => NativePtr = (ImGuiPlatformIO*)nativePtr; |
||||||
|
public static implicit operator ImGuiPlatformIOPtr(ImGuiPlatformIO* nativePtr) => new ImGuiPlatformIOPtr(nativePtr); |
||||||
|
public static implicit operator ImGuiPlatformIO* (ImGuiPlatformIOPtr wrappedPtr) => wrappedPtr.NativePtr; |
||||||
|
public static implicit operator ImGuiPlatformIOPtr(IntPtr nativePtr) => new ImGuiPlatformIOPtr(nativePtr); |
||||||
|
public ref IntPtr Platform_CreateWindow => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_CreateWindow); |
||||||
|
public ref IntPtr Platform_DestroyWindow => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_DestroyWindow); |
||||||
|
public ref IntPtr Platform_ShowWindow => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_ShowWindow); |
||||||
|
public ref IntPtr Platform_SetWindowPos => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_SetWindowPos); |
||||||
|
public ref IntPtr Platform_GetWindowPos => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_GetWindowPos); |
||||||
|
public ref IntPtr Platform_SetWindowSize => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_SetWindowSize); |
||||||
|
public ref IntPtr Platform_GetWindowSize => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_GetWindowSize); |
||||||
|
public ref IntPtr Platform_SetWindowFocus => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_SetWindowFocus); |
||||||
|
public ref IntPtr Platform_GetWindowFocus => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_GetWindowFocus); |
||||||
|
public ref IntPtr Platform_GetWindowMinimized => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_GetWindowMinimized); |
||||||
|
public ref IntPtr Platform_SetWindowTitle => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_SetWindowTitle); |
||||||
|
public ref IntPtr Platform_SetWindowAlpha => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_SetWindowAlpha); |
||||||
|
public ref IntPtr Platform_UpdateWindow => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_UpdateWindow); |
||||||
|
public ref IntPtr Platform_RenderWindow => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_RenderWindow); |
||||||
|
public ref IntPtr Platform_SwapBuffers => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_SwapBuffers); |
||||||
|
public ref IntPtr Platform_GetWindowDpiScale => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_GetWindowDpiScale); |
||||||
|
public ref IntPtr Platform_OnChangedViewport => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_OnChangedViewport); |
||||||
|
public ref IntPtr Platform_SetImeInputPos => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_SetImeInputPos); |
||||||
|
public ref IntPtr Platform_CreateVkSurface => ref Unsafe.AsRef<IntPtr>(&NativePtr->Platform_CreateVkSurface); |
||||||
|
public ref IntPtr Renderer_CreateWindow => ref Unsafe.AsRef<IntPtr>(&NativePtr->Renderer_CreateWindow); |
||||||
|
public ref IntPtr Renderer_DestroyWindow => ref Unsafe.AsRef<IntPtr>(&NativePtr->Renderer_DestroyWindow); |
||||||
|
public ref IntPtr Renderer_SetWindowSize => ref Unsafe.AsRef<IntPtr>(&NativePtr->Renderer_SetWindowSize); |
||||||
|
public ref IntPtr Renderer_RenderWindow => ref Unsafe.AsRef<IntPtr>(&NativePtr->Renderer_RenderWindow); |
||||||
|
public ref IntPtr Renderer_SwapBuffers => ref Unsafe.AsRef<IntPtr>(&NativePtr->Renderer_SwapBuffers); |
||||||
|
public ImPtrVector<ImGuiPlatformMonitorPtr> Monitors => new ImPtrVector<ImGuiPlatformMonitorPtr>(NativePtr->Monitors, Unsafe.SizeOf<ImGuiPlatformMonitor>()); |
||||||
|
public ImVector<ImGuiViewportPtr> Viewports => new ImVector<ImGuiViewportPtr>(NativePtr->Viewports); |
||||||
|
public void Destroy() |
||||||
|
{ |
||||||
|
ImGuiNative.ImGuiPlatformIO_destroy((ImGuiPlatformIO*)(NativePtr)); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,34 @@ |
|||||||
|
using System; |
||||||
|
using System.Numerics; |
||||||
|
using System.Runtime.CompilerServices; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace ImGuiNET |
||||||
|
{ |
||||||
|
public unsafe partial struct ImGuiPlatformMonitor |
||||||
|
{ |
||||||
|
public Vector2 MainPos; |
||||||
|
public Vector2 MainSize; |
||||||
|
public Vector2 WorkPos; |
||||||
|
public Vector2 WorkSize; |
||||||
|
public float DpiScale; |
||||||
|
} |
||||||
|
public unsafe partial struct ImGuiPlatformMonitorPtr |
||||||
|
{ |
||||||
|
public ImGuiPlatformMonitor* NativePtr { get; } |
||||||
|
public ImGuiPlatformMonitorPtr(ImGuiPlatformMonitor* nativePtr) => NativePtr = nativePtr; |
||||||
|
public ImGuiPlatformMonitorPtr(IntPtr nativePtr) => NativePtr = (ImGuiPlatformMonitor*)nativePtr; |
||||||
|
public static implicit operator ImGuiPlatformMonitorPtr(ImGuiPlatformMonitor* nativePtr) => new ImGuiPlatformMonitorPtr(nativePtr); |
||||||
|
public static implicit operator ImGuiPlatformMonitor* (ImGuiPlatformMonitorPtr wrappedPtr) => wrappedPtr.NativePtr; |
||||||
|
public static implicit operator ImGuiPlatformMonitorPtr(IntPtr nativePtr) => new ImGuiPlatformMonitorPtr(nativePtr); |
||||||
|
public ref Vector2 MainPos => ref Unsafe.AsRef<Vector2>(&NativePtr->MainPos); |
||||||
|
public ref Vector2 MainSize => ref Unsafe.AsRef<Vector2>(&NativePtr->MainSize); |
||||||
|
public ref Vector2 WorkPos => ref Unsafe.AsRef<Vector2>(&NativePtr->WorkPos); |
||||||
|
public ref Vector2 WorkSize => ref Unsafe.AsRef<Vector2>(&NativePtr->WorkSize); |
||||||
|
public ref float DpiScale => ref Unsafe.AsRef<float>(&NativePtr->DpiScale); |
||||||
|
public void Destroy() |
||||||
|
{ |
||||||
|
ImGuiNative.ImGuiPlatformMonitor_destroy((ImGuiPlatformMonitor*)(NativePtr)); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,42 @@ |
|||||||
|
using System; |
||||||
|
using System.Numerics; |
||||||
|
using System.Runtime.CompilerServices; |
||||||
|
using System.Text; |
||||||
|
|
||||||
|
namespace ImGuiNET |
||||||
|
{ |
||||||
|
public unsafe partial struct ImGuiWindowClass |
||||||
|
{ |
||||||
|
public uint ClassId; |
||||||
|
public uint ParentViewportId; |
||||||
|
public ImGuiViewportFlags ViewportFlagsOverrideSet; |
||||||
|
public ImGuiViewportFlags ViewportFlagsOverrideClear; |
||||||
|
public ImGuiTabItemFlags TabItemFlagsOverrideSet; |
||||||
|
public ImGuiDockNodeFlags DockNodeFlagsOverrideSet; |
||||||
|
public ImGuiDockNodeFlags DockNodeFlagsOverrideClear; |
||||||
|
public byte DockingAlwaysTabBar; |
||||||
|
public byte DockingAllowUnclassed; |
||||||
|
} |
||||||
|
public unsafe partial struct ImGuiWindowClassPtr |
||||||
|
{ |
||||||
|
public ImGuiWindowClass* NativePtr { get; } |
||||||
|
public ImGuiWindowClassPtr(ImGuiWindowClass* nativePtr) => NativePtr = nativePtr; |
||||||
|
public ImGuiWindowClassPtr(IntPtr nativePtr) => NativePtr = (ImGuiWindowClass*)nativePtr; |
||||||
|
public static implicit operator ImGuiWindowClassPtr(ImGuiWindowClass* nativePtr) => new ImGuiWindowClassPtr(nativePtr); |
||||||
|
public static implicit operator ImGuiWindowClass* (ImGuiWindowClassPtr wrappedPtr) => wrappedPtr.NativePtr; |
||||||
|
public static implicit operator ImGuiWindowClassPtr(IntPtr nativePtr) => new ImGuiWindowClassPtr(nativePtr); |
||||||
|
public ref uint ClassId => ref Unsafe.AsRef<uint>(&NativePtr->ClassId); |
||||||
|
public ref uint ParentViewportId => ref Unsafe.AsRef<uint>(&NativePtr->ParentViewportId); |
||||||
|
public ref ImGuiViewportFlags ViewportFlagsOverrideSet => ref Unsafe.AsRef<ImGuiViewportFlags>(&NativePtr->ViewportFlagsOverrideSet); |
||||||
|
public ref ImGuiViewportFlags ViewportFlagsOverrideClear => ref Unsafe.AsRef<ImGuiViewportFlags>(&NativePtr->ViewportFlagsOverrideClear); |
||||||
|
public ref ImGuiTabItemFlags TabItemFlagsOverrideSet => ref Unsafe.AsRef<ImGuiTabItemFlags>(&NativePtr->TabItemFlagsOverrideSet); |
||||||
|
public ref ImGuiDockNodeFlags DockNodeFlagsOverrideSet => ref Unsafe.AsRef<ImGuiDockNodeFlags>(&NativePtr->DockNodeFlagsOverrideSet); |
||||||
|
public ref ImGuiDockNodeFlags DockNodeFlagsOverrideClear => ref Unsafe.AsRef<ImGuiDockNodeFlags>(&NativePtr->DockNodeFlagsOverrideClear); |
||||||
|
public ref bool DockingAlwaysTabBar => ref Unsafe.AsRef<bool>(&NativePtr->DockingAlwaysTabBar); |
||||||
|
public ref bool DockingAllowUnclassed => ref Unsafe.AsRef<bool>(&NativePtr->DockingAllowUnclassed); |
||||||
|
public void Destroy() |
||||||
|
{ |
||||||
|
ImGuiNative.ImGuiWindowClass_destroy((ImGuiWindowClass*)(NativePtr)); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue