mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
1423 lines
61 KiB
C#
1423 lines
61 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.ImGui.Generator; do not edit by hand.
|
|
#nullable enable
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.ImGuiApi
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// Interface between platform/renderer backends and ImGui (e.g. Clipboard, IME, Multi-Viewport support).
|
|
/// Extends ImGuiIO.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L203">imgui.h:203</see>
|
|
/// <br/><c>struct ImGuiPlatformIO</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImGui layer
|
|
/// </para>
|
|
/// </remarks>
|
|
[StructLayout(LayoutKind.Explicit, Size = 328)]
|
|
public partial struct ImGuiPlatformIO
|
|
{
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4113">imgui.h:4113</see>
|
|
/// <br/><c>const char* (*Platform_GetClipboardTextFn)(ImGuiContext* ctx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Access OS clipboard
|
|
/// (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(0)]
|
|
public nint Platform_GetClipboardTextFn;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4114">imgui.h:4114</see>
|
|
/// <br/><c>void (*Platform_SetClipboardTextFn)(ImGuiContext* ctx, const char* text)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Access OS clipboard
|
|
/// (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(8)]
|
|
public nint Platform_SetClipboardTextFn;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4115">imgui.h:4115</see>
|
|
/// <br/><c>void* Platform_ClipboardUserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Access OS clipboard
|
|
/// (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(16)]
|
|
public nint Platform_ClipboardUserData;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4119">imgui.h:4119</see>
|
|
/// <br/><c>bool (*Platform_OpenInShellFn)(ImGuiContext* ctx, const char* path)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Open link/folder/file in OS Shell
|
|
/// (default to use ShellExecuteW() on Windows, system() on Linux/Mac)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(24)]
|
|
public nint Platform_OpenInShellFn;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4120">imgui.h:4120</see>
|
|
/// <br/><c>void* Platform_OpenInShellUserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Open link/folder/file in OS Shell
|
|
/// (default to use ShellExecuteW() on Windows, system() on Linux/Mac)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(32)]
|
|
public nint Platform_OpenInShellUserData;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4124">imgui.h:4124</see>
|
|
/// <br/>
|
|
/// <c>void (*Platform_SetImeDataFn)(ImGuiContext* ctx, ImGuiViewport* viewport, ImGuiPlatformImeData* data)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows)
|
|
/// (default to use native imm32 api on Windows)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(40)]
|
|
public nint Platform_SetImeDataFn;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4125">imgui.h:4125</see>
|
|
/// <br/><c>void* Platform_ImeUserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows)
|
|
/// (default to use native imm32 api on Windows)
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(48)]
|
|
public nint Platform_ImeUserData;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// '.'
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4130">imgui.h:4130</see>
|
|
/// <br/><c>ImWchar Platform_LocaleDecimalPoint</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Platform locale
|
|
/// [Experimental] Configure decimal point e.g. '.' or ',' useful for some languages (e.g. German), generally pulled from *localeconv()->decimal_point
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(56)]
|
|
public uint Platform_LocaleDecimalPoint;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4137">imgui.h:4137</see>
|
|
/// <br/><c>int Renderer_TextureMaxWidth</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Optional: Maximum texture size supported by renderer (used to adjust how we size textures). 0 if not
|
|
/// known.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(60)]
|
|
public int Renderer_TextureMaxWidth;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4138">imgui.h:4138</see>
|
|
/// <br/><c>int Renderer_TextureMaxHeight</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Optional: Maximum texture size supported by renderer (used to adjust how we size textures). 0 if not
|
|
/// known.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(64)]
|
|
public int Renderer_TextureMaxHeight;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4141">imgui.h:4141</see>
|
|
/// <br/><c>void* Renderer_RenderState</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Written by some backends during ImGui_ImplXXXX_RenderDrawData() call to point backend_specific
|
|
/// ImGui_ImplXXXX_RenderState* structure.
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(72)]
|
|
public nint Renderer_RenderState;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // Create a new platform window for the given viewport
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4160">imgui.h:4160</see>
|
|
/// <br/><c>void (*Platform_CreateWindow)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(80)]
|
|
public nint Platform_CreateWindow;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . U . D //
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4161">imgui.h:4161</see>
|
|
/// <br/><c>void (*Platform_DestroyWindow)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(88)]
|
|
public nint Platform_DestroyWindow;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // Newly created windows are initially hidden so SetWindowPos/Size/Title can be called on
|
|
/// them before showing the window
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4162">imgui.h:4162</see>
|
|
/// <br/><c>void (*Platform_ShowWindow)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(96)]
|
|
public nint Platform_ShowWindow;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // Set platform window position (given the upper-left corner of client area)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4163">imgui.h:4163</see>
|
|
/// <br/><c>void (*Platform_SetWindowPos)(ImGuiViewport* vp, ImVec2 pos)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(104)]
|
|
public nint Platform_SetWindowPos;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . . . . //
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4164">imgui.h:4164</see>
|
|
/// <br/><c>ImVec2 (*Platform_GetWindowPos)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(112)]
|
|
public nint Platform_GetWindowPos;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // Set platform window client area size (ignoring OS decorations such as OS title bar etc.)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4165">imgui.h:4165</see>
|
|
/// <br/><c>void (*Platform_SetWindowSize)(ImGuiViewport* vp, ImVec2 size)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(120)]
|
|
public nint Platform_SetWindowSize;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . . . . // Get platform window client area size
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4166">imgui.h:4166</see>
|
|
/// <br/><c>ImVec2 (*Platform_GetWindowSize)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(128)]
|
|
public nint Platform_GetWindowSize;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . . . . // Return viewport density. Always 1,1 on Windows, often 2,2 on Retina display on macOS/iOS.
|
|
/// MUST BE INTEGER VALUES.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4167">imgui.h:4167</see>
|
|
/// <br/><c>ImVec2 (*Platform_GetWindowFramebufferScale)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(136)]
|
|
public nint Platform_GetWindowFramebufferScale;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . . . . // Move window to front and set input focus
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4168">imgui.h:4168</see>
|
|
/// <br/><c>void (*Platform_SetWindowFocus)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(144)]
|
|
public nint Platform_SetWindowFocus;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . //
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4169">imgui.h:4169</see>
|
|
/// <br/><c>bool (*Platform_GetWindowFocus)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(152)]
|
|
public nint Platform_GetWindowFocus;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . . . . // Get platform window minimized state. When minimized, we generally won't attempt to get/set
|
|
/// size and contents will be culled more easily
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4170">imgui.h:4170</see>
|
|
/// <br/><c>bool (*Platform_GetWindowMinimized)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(160)]
|
|
public nint Platform_GetWindowMinimized;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // Set platform window title (given an UTF-8 string)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4171">imgui.h:4171</see>
|
|
/// <br/><c>void (*Platform_SetWindowTitle)(ImGuiViewport* vp, const char* str)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(168)]
|
|
public nint Platform_SetWindowTitle;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // (Optional) Setup global transparency (not per-pixel transparency)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4172">imgui.h:4172</see>
|
|
/// <br/><c>void (*Platform_SetWindowAlpha)(ImGuiViewport* vp, float alpha)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(176)]
|
|
public nint Platform_SetWindowAlpha;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // (Optional) Called by UpdatePlatformWindows(). Optional hook to allow the platform backend
|
|
/// from doing general book-keeping every frame.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4173">imgui.h:4173</see>
|
|
/// <br/><c>void (*Platform_UpdateWindow)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(184)]
|
|
public nint Platform_UpdateWindow;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . . R . // (Optional) Main rendering (platform side! This is often unused, or just setting a
|
|
/// "current" context for OpenGL bindings). 'render_arg' is the value passed to
|
|
/// RenderPlatformWindowsDefault().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4174">imgui.h:4174</see>
|
|
/// <br/><c>void (*Platform_RenderWindow)(ImGuiViewport* vp, void* render_arg)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(192)]
|
|
public nint Platform_RenderWindow;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . . R . // (Optional) Call Present/SwapBuffers (platform side! This is often unused!). 'render_arg'
|
|
/// is the value passed to RenderPlatformWindowsDefault().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4175">imgui.h:4175</see>
|
|
/// <br/><c>void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(200)]
|
|
public nint Platform_SwapBuffers;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Return DPI scale for this viewport. 1.0f = 96
|
|
/// DPI.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4176">imgui.h:4176</see>
|
|
/// <br/><c>float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(208)]
|
|
public nint Platform_GetWindowDpiScale;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . F . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Called during Begin() every time the viewport
|
|
/// we are outputting into changes, so backend has a chance to swap fonts to adjust style.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4177">imgui.h:4177</see>
|
|
/// <br/><c>void (*Platform_OnChangedViewport)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(216)]
|
|
public nint Platform_OnChangedViewport;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . . . . // (Optional) [BETA] Get initial work area inset for the viewport (won't be covered by main
|
|
/// menu bar, dockspace over viewport etc.). Default to (0,0),(0,0). 'safeAreaInsets' in iOS land,
|
|
/// 'DisplayCutout' in Android land.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4178">imgui.h:4178</see>
|
|
/// <br/><c>ImVec4 (*Platform_GetWindowWorkAreaInsets)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(224)]
|
|
public nint Platform_GetWindowWorkAreaInsets;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// (Optional) For a Vulkan Renderer to call into Platform code (since the surface creation needs to tie
|
|
/// them both).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4179">imgui.h:4179</see>
|
|
/// <br/>
|
|
/// <c>int (*Platform_CreateVkSurface)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(232)]
|
|
public nint Platform_CreateVkSurface;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // Create swap chain, frame buffers etc. (called after Platform_CreateWindow)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4182">imgui.h:4182</see>
|
|
/// <br/><c>void (*Renderer_CreateWindow)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(240)]
|
|
public nint Renderer_CreateWindow;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . U . D // Destroy swap chain, frame buffers etc. (called before Platform_DestroyWindow)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4183">imgui.h:4183</see>
|
|
/// <br/><c>void (*Renderer_DestroyWindow)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(248)]
|
|
public nint Renderer_DestroyWindow;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // Resize swap chain, frame buffers etc. (called after Platform_SetWindowSize)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4184">imgui.h:4184</see>
|
|
/// <br/><c>void (*Renderer_SetWindowSize)(ImGuiViewport* vp, ImVec2 size)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(256)]
|
|
public nint Renderer_SetWindowSize;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . . R . // (Optional) Clear framebuffer, setup render target, then render the viewport->DrawData.
|
|
/// 'render_arg' is the value passed to RenderPlatformWindowsDefault().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4185">imgui.h:4185</see>
|
|
/// <br/><c>void (*Renderer_RenderWindow)(ImGuiViewport* vp, void* render_arg)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(264)]
|
|
public nint Renderer_RenderWindow;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . . R . // (Optional) Call Present/SwapBuffers. 'render_arg' is the value passed to
|
|
/// RenderPlatformWindowsDefault().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4186">imgui.h:4186</see>
|
|
/// <br/><c>void (*Renderer_SwapBuffers)(ImGuiViewport* vp, void* render_arg)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
[FieldOffset(272)]
|
|
public nint Renderer_SwapBuffers;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4191">imgui.h:4191</see>
|
|
/// <br/><c>ImVector<ImGuiPlatformMonitor> Monitors</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// (Optional) Monitor list
|
|
/// - Updated by: app/backend. Update every frame to dynamically support changing monitor or DPI configuration.
|
|
/// - Used by: dear imgui to query DPI info, clamp popups/tooltips within same monitor and not have them straddle monitors.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(280)]
|
|
public ImVector<ImGuiPlatformMonitor> Monitors;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// List of textures used by Dear ImGui (most often 1) + contents of external texture list is automatically
|
|
/// appended into this.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4199">imgui.h:4199</see>
|
|
/// <br/><c>ImVector<ImTextureData*> Textures</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Textures list (the list is updated by calling ImGui::EndFrame or ImGui::Render)
|
|
/// The ImGui_ImplXXXX_RenderDrawData() function of each backend generally access this via ImDrawData::Textures which points to this. The array is available here mostly because backends will want to destroy textures on shutdown.
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(296)]
|
|
public ImVector<ImTextureDataPtr> Textures;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Main viewports, followed by all secondary viewports.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4203">imgui.h:4203</see>
|
|
/// <br/><c>ImVector<ImGuiViewport*> Viewports</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Viewports list (the list is updated by calling ImGui::EndFrame or ImGui::Render)
|
|
/// (in the future we will attempt to organize this feature to remove the need for a "main viewport")
|
|
/// </code>
|
|
/// </remarks>
|
|
[FieldOffset(312)]
|
|
public ImVector<ImGuiViewportPtr> Viewports;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Interface between platform/renderer backends and ImGui (e.g. Clipboard, IME, Multi-Viewport support).
|
|
/// Extends ImGuiIO.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L203">imgui.h:203</see>
|
|
/// <br/><c>struct ImGuiPlatformIO</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Forward declarations: ImGui layer
|
|
/// </para>
|
|
/// </remarks>
|
|
public unsafe partial struct ImGuiPlatformIOPtr(ImGuiPlatformIO* ptr) : INullable
|
|
{
|
|
private ImGuiPlatformIO* _ptr = ptr;
|
|
public ImGuiPlatformIO* Ptr => _ptr;
|
|
|
|
public bool IsNull() => _ptr is null;
|
|
|
|
public static implicit operator ImGuiPlatformIOPtr(ImGuiPlatformIO* ptr) => new(ptr);
|
|
|
|
public static implicit operator ImGuiPlatformIO*(ImGuiPlatformIOPtr wrapper) => wrapper.Ptr;
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4113">imgui.h:4113</see>
|
|
/// <br/><c>const char* (*Platform_GetClipboardTextFn)(ImGuiContext* ctx)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Access OS clipboard
|
|
/// (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint Platform_GetClipboardTextFn => ref Unsafe.AsRef<nint>(&_ptr->Platform_GetClipboardTextFn);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4114">imgui.h:4114</see>
|
|
/// <br/><c>void (*Platform_SetClipboardTextFn)(ImGuiContext* ctx, const char* text)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Access OS clipboard
|
|
/// (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint Platform_SetClipboardTextFn => ref Unsafe.AsRef<nint>(&_ptr->Platform_SetClipboardTextFn);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4115">imgui.h:4115</see>
|
|
/// <br/><c>void* Platform_ClipboardUserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Access OS clipboard
|
|
/// (default to use native Win32 clipboard on Windows, otherwise uses a private clipboard. Override to access OS clipboard on other architectures)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint Platform_ClipboardUserData => ref Unsafe.AsRef<nint>(&_ptr->Platform_ClipboardUserData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4119">imgui.h:4119</see>
|
|
/// <br/><c>bool (*Platform_OpenInShellFn)(ImGuiContext* ctx, const char* path)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Open link/folder/file in OS Shell
|
|
/// (default to use ShellExecuteW() on Windows, system() on Linux/Mac)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint Platform_OpenInShellFn => ref Unsafe.AsRef<nint>(&_ptr->Platform_OpenInShellFn);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4120">imgui.h:4120</see>
|
|
/// <br/><c>void* Platform_OpenInShellUserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Open link/folder/file in OS Shell
|
|
/// (default to use ShellExecuteW() on Windows, system() on Linux/Mac)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint Platform_OpenInShellUserData => ref Unsafe.AsRef<nint>(&_ptr->Platform_OpenInShellUserData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4124">imgui.h:4124</see>
|
|
/// <br/>
|
|
/// <c>void (*Platform_SetImeDataFn)(ImGuiContext* ctx, ImGuiViewport* viewport, ImGuiPlatformImeData* data)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows)
|
|
/// (default to use native imm32 api on Windows)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint Platform_SetImeDataFn => ref Unsafe.AsRef<nint>(&_ptr->Platform_SetImeDataFn);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4125">imgui.h:4125</see>
|
|
/// <br/><c>void* Platform_ImeUserData</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Notify OS Input Method Editor of the screen position of your cursor for text input position (e.g. when using Japanese/Chinese IME on Windows)
|
|
/// (default to use native imm32 api on Windows)
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref nint Platform_ImeUserData => ref Unsafe.AsRef<nint>(&_ptr->Platform_ImeUserData);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// '.'
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4130">imgui.h:4130</see>
|
|
/// <br/><c>ImWchar Platform_LocaleDecimalPoint</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Optional: Platform locale
|
|
/// [Experimental] Configure decimal point e.g. '.' or ',' useful for some languages (e.g. German), generally pulled from *localeconv()->decimal_point
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref uint Platform_LocaleDecimalPoint => ref Unsafe.AsRef<uint>(&_ptr->Platform_LocaleDecimalPoint);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4137">imgui.h:4137</see>
|
|
/// <br/><c>int Renderer_TextureMaxWidth</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Optional: Maximum texture size supported by renderer (used to adjust how we size textures). 0 if not
|
|
/// known.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int Renderer_TextureMaxWidth => ref Unsafe.AsRef<int>(&_ptr->Renderer_TextureMaxWidth);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4138">imgui.h:4138</see>
|
|
/// <br/><c>int Renderer_TextureMaxHeight</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Optional: Maximum texture size supported by renderer (used to adjust how we size textures). 0 if not
|
|
/// known.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref int Renderer_TextureMaxHeight => ref Unsafe.AsRef<int>(&_ptr->Renderer_TextureMaxHeight);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4141">imgui.h:4141</see>
|
|
/// <br/><c>void* Renderer_RenderState</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Written by some backends during ImGui_ImplXXXX_RenderDrawData() call to point backend_specific
|
|
/// ImGui_ImplXXXX_RenderState* structure.
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Renderer_RenderState => ref Unsafe.AsRef<nint>(&_ptr->Renderer_RenderState);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // Create a new platform window for the given viewport
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4160">imgui.h:4160</see>
|
|
/// <br/><c>void (*Platform_CreateWindow)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_CreateWindow => ref Unsafe.AsRef<nint>(&_ptr->Platform_CreateWindow);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . U . D //
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4161">imgui.h:4161</see>
|
|
/// <br/><c>void (*Platform_DestroyWindow)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_DestroyWindow => ref Unsafe.AsRef<nint>(&_ptr->Platform_DestroyWindow);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // Newly created windows are initially hidden so SetWindowPos/Size/Title can be called on
|
|
/// them before showing the window
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4162">imgui.h:4162</see>
|
|
/// <br/><c>void (*Platform_ShowWindow)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_ShowWindow => ref Unsafe.AsRef<nint>(&_ptr->Platform_ShowWindow);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // Set platform window position (given the upper-left corner of client area)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4163">imgui.h:4163</see>
|
|
/// <br/><c>void (*Platform_SetWindowPos)(ImGuiViewport* vp, ImVec2 pos)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_SetWindowPos => ref Unsafe.AsRef<nint>(&_ptr->Platform_SetWindowPos);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . . . . //
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4164">imgui.h:4164</see>
|
|
/// <br/><c>ImVec2 (*Platform_GetWindowPos)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_GetWindowPos => ref Unsafe.AsRef<nint>(&_ptr->Platform_GetWindowPos);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // Set platform window client area size (ignoring OS decorations such as OS title bar etc.)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4165">imgui.h:4165</see>
|
|
/// <br/><c>void (*Platform_SetWindowSize)(ImGuiViewport* vp, ImVec2 size)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_SetWindowSize => ref Unsafe.AsRef<nint>(&_ptr->Platform_SetWindowSize);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . . . . // Get platform window client area size
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4166">imgui.h:4166</see>
|
|
/// <br/><c>ImVec2 (*Platform_GetWindowSize)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_GetWindowSize => ref Unsafe.AsRef<nint>(&_ptr->Platform_GetWindowSize);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . . . . // Return viewport density. Always 1,1 on Windows, often 2,2 on Retina display on macOS/iOS.
|
|
/// MUST BE INTEGER VALUES.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4167">imgui.h:4167</see>
|
|
/// <br/><c>ImVec2 (*Platform_GetWindowFramebufferScale)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_GetWindowFramebufferScale =>
|
|
ref Unsafe.AsRef<nint>(&_ptr->Platform_GetWindowFramebufferScale);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . . . . // Move window to front and set input focus
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4168">imgui.h:4168</see>
|
|
/// <br/><c>void (*Platform_SetWindowFocus)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_SetWindowFocus => ref Unsafe.AsRef<nint>(&_ptr->Platform_SetWindowFocus);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . //
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4169">imgui.h:4169</see>
|
|
/// <br/><c>bool (*Platform_GetWindowFocus)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_GetWindowFocus => ref Unsafe.AsRef<nint>(&_ptr->Platform_GetWindowFocus);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . . . . // Get platform window minimized state. When minimized, we generally won't attempt to get/set
|
|
/// size and contents will be culled more easily
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4170">imgui.h:4170</see>
|
|
/// <br/><c>bool (*Platform_GetWindowMinimized)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_GetWindowMinimized => ref Unsafe.AsRef<nint>(&_ptr->Platform_GetWindowMinimized);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // Set platform window title (given an UTF-8 string)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4171">imgui.h:4171</see>
|
|
/// <br/><c>void (*Platform_SetWindowTitle)(ImGuiViewport* vp, const char* str)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_SetWindowTitle => ref Unsafe.AsRef<nint>(&_ptr->Platform_SetWindowTitle);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // (Optional) Setup global transparency (not per-pixel transparency)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4172">imgui.h:4172</see>
|
|
/// <br/><c>void (*Platform_SetWindowAlpha)(ImGuiViewport* vp, float alpha)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_SetWindowAlpha => ref Unsafe.AsRef<nint>(&_ptr->Platform_SetWindowAlpha);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // (Optional) Called by UpdatePlatformWindows(). Optional hook to allow the platform backend
|
|
/// from doing general book-keeping every frame.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4173">imgui.h:4173</see>
|
|
/// <br/><c>void (*Platform_UpdateWindow)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_UpdateWindow => ref Unsafe.AsRef<nint>(&_ptr->Platform_UpdateWindow);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . . R . // (Optional) Main rendering (platform side! This is often unused, or just setting a
|
|
/// "current" context for OpenGL bindings). 'render_arg' is the value passed to
|
|
/// RenderPlatformWindowsDefault().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4174">imgui.h:4174</see>
|
|
/// <br/><c>void (*Platform_RenderWindow)(ImGuiViewport* vp, void* render_arg)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_RenderWindow => ref Unsafe.AsRef<nint>(&_ptr->Platform_RenderWindow);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . . R . // (Optional) Call Present/SwapBuffers (platform side! This is often unused!). 'render_arg'
|
|
/// is the value passed to RenderPlatformWindowsDefault().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4175">imgui.h:4175</see>
|
|
/// <br/><c>void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_SwapBuffers => ref Unsafe.AsRef<nint>(&_ptr->Platform_SwapBuffers);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Return DPI scale for this viewport. 1.0f = 96
|
|
/// DPI.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4176">imgui.h:4176</see>
|
|
/// <br/><c>float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_GetWindowDpiScale => ref Unsafe.AsRef<nint>(&_ptr->Platform_GetWindowDpiScale);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . F . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Called during Begin() every time the viewport
|
|
/// we are outputting into changes, so backend has a chance to swap fonts to adjust style.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4177">imgui.h:4177</see>
|
|
/// <br/><c>void (*Platform_OnChangedViewport)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_OnChangedViewport => ref Unsafe.AsRef<nint>(&_ptr->Platform_OnChangedViewport);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . . . . // (Optional) [BETA] Get initial work area inset for the viewport (won't be covered by main
|
|
/// menu bar, dockspace over viewport etc.). Default to (0,0),(0,0). 'safeAreaInsets' in iOS land,
|
|
/// 'DisplayCutout' in Android land.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4178">imgui.h:4178</see>
|
|
/// <br/><c>ImVec4 (*Platform_GetWindowWorkAreaInsets)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_GetWindowWorkAreaInsets =>
|
|
ref Unsafe.AsRef<nint>(&_ptr->Platform_GetWindowWorkAreaInsets);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// (Optional) For a Vulkan Renderer to call into Platform code (since the surface creation needs to tie
|
|
/// them both).
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4179">imgui.h:4179</see>
|
|
/// <br/>
|
|
/// <c>int (*Platform_CreateVkSurface)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Platform_CreateVkSurface => ref Unsafe.AsRef<nint>(&_ptr->Platform_CreateVkSurface);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // Create swap chain, frame buffers etc. (called after Platform_CreateWindow)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4182">imgui.h:4182</see>
|
|
/// <br/><c>void (*Renderer_CreateWindow)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Renderer_CreateWindow => ref Unsafe.AsRef<nint>(&_ptr->Renderer_CreateWindow);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// N . U . D // Destroy swap chain, frame buffers etc. (called before Platform_DestroyWindow)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4183">imgui.h:4183</see>
|
|
/// <br/><c>void (*Renderer_DestroyWindow)(ImGuiViewport* vp)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Renderer_DestroyWindow => ref Unsafe.AsRef<nint>(&_ptr->Renderer_DestroyWindow);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . U . . // Resize swap chain, frame buffers etc. (called after Platform_SetWindowSize)
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4184">imgui.h:4184</see>
|
|
/// <br/><c>void (*Renderer_SetWindowSize)(ImGuiViewport* vp, ImVec2 size)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Renderer_SetWindowSize => ref Unsafe.AsRef<nint>(&_ptr->Renderer_SetWindowSize);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . . R . // (Optional) Clear framebuffer, setup render target, then render the viewport->DrawData.
|
|
/// 'render_arg' is the value passed to RenderPlatformWindowsDefault().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4185">imgui.h:4185</see>
|
|
/// <br/><c>void (*Renderer_RenderWindow)(ImGuiViewport* vp, void* render_arg)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Renderer_RenderWindow => ref Unsafe.AsRef<nint>(&_ptr->Renderer_RenderWindow);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// . . . R . // (Optional) Call Present/SwapBuffers. 'render_arg' is the value passed to
|
|
/// RenderPlatformWindowsDefault().
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4186">imgui.h:4186</see>
|
|
/// <br/><c>void (*Renderer_SwapBuffers)(ImGuiViewport* vp, void* render_arg)</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
|
|
/// </para>
|
|
/// </remarks>
|
|
public ref nint Renderer_SwapBuffers => ref Unsafe.AsRef<nint>(&_ptr->Renderer_SwapBuffers);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4191">imgui.h:4191</see>
|
|
/// <br/><c>ImVector<ImGuiPlatformMonitor> Monitors</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// (Optional) Monitor list
|
|
/// - Updated by: app/backend. Update every frame to dynamically support changing monitor or DPI configuration.
|
|
/// - Used by: dear imgui to query DPI info, clamp popups/tooltips within same monitor and not have them straddle monitors.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImVector<ImGuiPlatformMonitor> Monitors =>
|
|
ref Unsafe.AsRef<ImVector<ImGuiPlatformMonitor>>(&_ptr->Monitors);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// List of textures used by Dear ImGui (most often 1) + contents of external texture list is automatically
|
|
/// appended into this.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4199">imgui.h:4199</see>
|
|
/// <br/><c>ImVector<ImTextureData*> Textures</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Textures list (the list is updated by calling ImGui::EndFrame or ImGui::Render)
|
|
/// The ImGui_ImplXXXX_RenderDrawData() function of each backend generally access this via ImDrawData::Textures which points to this. The array is available here mostly because backends will want to destroy textures on shutdown.
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImVector<ImTextureDataPtr> Textures => ref Unsafe.AsRef<ImVector<ImTextureDataPtr>>(&_ptr->Textures);
|
|
|
|
/// <summary>
|
|
/// <para>
|
|
/// Main viewports, followed by all secondary viewports.
|
|
/// </para>
|
|
/// <para>
|
|
/// C++:
|
|
/// <see href="https://github.com/RocketWerkz/imgui/blob/v1.92.2-docking-brutal/imgui.h#L4203">imgui.h:4203</see>
|
|
/// <br/><c>ImVector<ImGuiViewport*> Viewports</c>
|
|
/// </para>
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <code>
|
|
/// Viewports list (the list is updated by calling ImGui::EndFrame or ImGui::Render)
|
|
/// (in the future we will attempt to organize this feature to remove the need for a "main viewport")
|
|
/// </code>
|
|
/// </remarks>
|
|
public ref ImVector<ImGuiViewportPtr> Viewports =>
|
|
ref Unsafe.AsRef<ImVector<ImGuiViewportPtr>>(&_ptr->Viewports);
|
|
}
|
|
}
|