//
// Generated by Brutal.ImGui.Generator; do not edit by hand.
#nullable enable
using System.Runtime.CompilerServices;
namespace Brutal.ImGuiApi
{
///
///
/// Interface between platform/renderer backends and ImGui (e.g. Clipboard, IME, Multi-Viewport support).
/// Extends ImGuiIO.
///
///
/// C++:
/// imgui.h:203
///
struct ImGuiPlatformIO
///
///
///
///
/// Forward declarations: ImGui layer
///
///
[StructLayout(LayoutKind.Explicit, Size = 328)]
public partial struct ImGuiPlatformIO
{
///
///
/// C++:
/// imgui.h:4113
///
const char* (*Platform_GetClipboardTextFn)(ImGuiContext* ctx)
///
///
///
///
/// 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)
///
///
[FieldOffset(0)]
public nint Platform_GetClipboardTextFn;
///
///
/// C++:
/// imgui.h:4114
///
void (*Platform_SetClipboardTextFn)(ImGuiContext* ctx, const char* text)
///
///
///
///
/// 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)
///
///
[FieldOffset(8)]
public nint Platform_SetClipboardTextFn;
///
///
/// C++:
/// imgui.h:4115
///
void* Platform_ClipboardUserData
///
///
///
///
/// 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)
///
///
[FieldOffset(16)]
public nint Platform_ClipboardUserData;
///
///
/// C++:
/// imgui.h:4119
///
bool (*Platform_OpenInShellFn)(ImGuiContext* ctx, const char* path)
///
///
///
///
/// Optional: Open link/folder/file in OS Shell
/// (default to use ShellExecuteW() on Windows, system() on Linux/Mac)
///
///
[FieldOffset(24)]
public nint Platform_OpenInShellFn;
///
///
/// C++:
/// imgui.h:4120
///
void* Platform_OpenInShellUserData
///
///
///
///
/// Optional: Open link/folder/file in OS Shell
/// (default to use ShellExecuteW() on Windows, system() on Linux/Mac)
///
///
[FieldOffset(32)]
public nint Platform_OpenInShellUserData;
///
///
/// C++:
/// imgui.h:4124
///
/// void (*Platform_SetImeDataFn)(ImGuiContext* ctx, ImGuiViewport* viewport, ImGuiPlatformImeData* data)
///
///
///
///
/// 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)
///
///
[FieldOffset(40)]
public nint Platform_SetImeDataFn;
///
///
/// C++:
/// imgui.h:4125
///
void* Platform_ImeUserData
///
///
///
///
/// 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)
///
///
[FieldOffset(48)]
public nint Platform_ImeUserData;
///
///
/// '.'
///
///
/// C++:
/// imgui.h:4130
///
ImWchar Platform_LocaleDecimalPoint
///
///
///
///
/// Optional: Platform locale
/// [Experimental] Configure decimal point e.g. '.' or ',' useful for some languages (e.g. German), generally pulled from *localeconv()->decimal_point
///
///
[FieldOffset(56)]
public uint Platform_LocaleDecimalPoint;
///
///
/// C++:
/// imgui.h:4137
///
int Renderer_TextureMaxWidth
///
///
///
///
/// Optional: Maximum texture size supported by renderer (used to adjust how we size textures). 0 if not
/// known.
///
///
[FieldOffset(60)]
public int Renderer_TextureMaxWidth;
///
///
/// C++:
/// imgui.h:4138
///
int Renderer_TextureMaxHeight
///
///
///
///
/// Optional: Maximum texture size supported by renderer (used to adjust how we size textures). 0 if not
/// known.
///
///
[FieldOffset(64)]
public int Renderer_TextureMaxHeight;
///
///
/// C++:
/// imgui.h:4141
///
void* Renderer_RenderState
///
///
///
///
/// Written by some backends during ImGui_ImplXXXX_RenderDrawData() call to point backend_specific
/// ImGui_ImplXXXX_RenderState* structure.
///
///
[FieldOffset(72)]
public nint Renderer_RenderState;
///
///
/// . . U . . // Create a new platform window for the given viewport
///
///
/// C++:
/// imgui.h:4160
///
void (*Platform_CreateWindow)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(80)]
public nint Platform_CreateWindow;
///
///
/// N . U . D //
///
///
/// C++:
/// imgui.h:4161
///
void (*Platform_DestroyWindow)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(88)]
public nint Platform_DestroyWindow;
///
///
/// . . U . . // Newly created windows are initially hidden so SetWindowPos/Size/Title can be called on
/// them before showing the window
///
///
/// C++:
/// imgui.h:4162
///
void (*Platform_ShowWindow)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(96)]
public nint Platform_ShowWindow;
///
///
/// . . U . . // Set platform window position (given the upper-left corner of client area)
///
///
/// C++:
/// imgui.h:4163
///
void (*Platform_SetWindowPos)(ImGuiViewport* vp, ImVec2 pos)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(104)]
public nint Platform_SetWindowPos;
///
///
/// N . . . . //
///
///
/// C++:
/// imgui.h:4164
///
ImVec2 (*Platform_GetWindowPos)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(112)]
public nint Platform_GetWindowPos;
///
///
/// . . U . . // Set platform window client area size (ignoring OS decorations such as OS title bar etc.)
///
///
/// C++:
/// imgui.h:4165
///
void (*Platform_SetWindowSize)(ImGuiViewport* vp, ImVec2 size)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(120)]
public nint Platform_SetWindowSize;
///
///
/// N . . . . // Get platform window client area size
///
///
/// C++:
/// imgui.h:4166
///
ImVec2 (*Platform_GetWindowSize)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(128)]
public nint Platform_GetWindowSize;
///
///
/// N . . . . // Return viewport density. Always 1,1 on Windows, often 2,2 on Retina display on macOS/iOS.
/// MUST BE INTEGER VALUES.
///
///
/// C++:
/// imgui.h:4167
///
ImVec2 (*Platform_GetWindowFramebufferScale)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(136)]
public nint Platform_GetWindowFramebufferScale;
///
///
/// N . . . . // Move window to front and set input focus
///
///
/// C++:
/// imgui.h:4168
///
void (*Platform_SetWindowFocus)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(144)]
public nint Platform_SetWindowFocus;
///
///
/// . . U . . //
///
///
/// C++:
/// imgui.h:4169
///
bool (*Platform_GetWindowFocus)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(152)]
public nint Platform_GetWindowFocus;
///
///
/// N . . . . // Get platform window minimized state. When minimized, we generally won't attempt to get/set
/// size and contents will be culled more easily
///
///
/// C++:
/// imgui.h:4170
///
bool (*Platform_GetWindowMinimized)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(160)]
public nint Platform_GetWindowMinimized;
///
///
/// . . U . . // Set platform window title (given an UTF-8 string)
///
///
/// C++:
/// imgui.h:4171
///
void (*Platform_SetWindowTitle)(ImGuiViewport* vp, const char* str)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(168)]
public nint Platform_SetWindowTitle;
///
///
/// . . U . . // (Optional) Setup global transparency (not per-pixel transparency)
///
///
/// C++:
/// imgui.h:4172
///
void (*Platform_SetWindowAlpha)(ImGuiViewport* vp, float alpha)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(176)]
public nint Platform_SetWindowAlpha;
///
///
/// . . U . . // (Optional) Called by UpdatePlatformWindows(). Optional hook to allow the platform backend
/// from doing general book-keeping every frame.
///
///
/// C++:
/// imgui.h:4173
///
void (*Platform_UpdateWindow)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(184)]
public nint Platform_UpdateWindow;
///
///
/// . . . 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().
///
///
/// C++:
/// imgui.h:4174
///
void (*Platform_RenderWindow)(ImGuiViewport* vp, void* render_arg)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(192)]
public nint Platform_RenderWindow;
///
///
/// . . . R . // (Optional) Call Present/SwapBuffers (platform side! This is often unused!). 'render_arg'
/// is the value passed to RenderPlatformWindowsDefault().
///
///
/// C++:
/// imgui.h:4175
///
void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(200)]
public nint Platform_SwapBuffers;
///
///
/// N . . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Return DPI scale for this viewport. 1.0f = 96
/// DPI.
///
///
/// C++:
/// imgui.h:4176
///
float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(208)]
public nint Platform_GetWindowDpiScale;
///
///
/// . 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.
///
///
/// C++:
/// imgui.h:4177
///
void (*Platform_OnChangedViewport)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(216)]
public nint Platform_OnChangedViewport;
///
///
/// 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.
///
///
/// C++:
/// imgui.h:4178
///
ImVec4 (*Platform_GetWindowWorkAreaInsets)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(224)]
public nint Platform_GetWindowWorkAreaInsets;
///
///
/// (Optional) For a Vulkan Renderer to call into Platform code (since the surface creation needs to tie
/// them both).
///
///
/// C++:
/// imgui.h:4179
///
/// int (*Platform_CreateVkSurface)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
[FieldOffset(232)]
public nint Platform_CreateVkSurface;
///
///
/// . . U . . // Create swap chain, frame buffers etc. (called after Platform_CreateWindow)
///
///
/// C++:
/// imgui.h:4182
///
void (*Renderer_CreateWindow)(ImGuiViewport* vp)
///
///
///
///
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
///
///
[FieldOffset(240)]
public nint Renderer_CreateWindow;
///
///
/// N . U . D // Destroy swap chain, frame buffers etc. (called before Platform_DestroyWindow)
///
///
/// C++:
/// imgui.h:4183
///
void (*Renderer_DestroyWindow)(ImGuiViewport* vp)
///
///
///
///
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
///
///
[FieldOffset(248)]
public nint Renderer_DestroyWindow;
///
///
/// . . U . . // Resize swap chain, frame buffers etc. (called after Platform_SetWindowSize)
///
///
/// C++:
/// imgui.h:4184
///
void (*Renderer_SetWindowSize)(ImGuiViewport* vp, ImVec2 size)
///
///
///
///
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
///
///
[FieldOffset(256)]
public nint Renderer_SetWindowSize;
///
///
/// . . . R . // (Optional) Clear framebuffer, setup render target, then render the viewport->DrawData.
/// 'render_arg' is the value passed to RenderPlatformWindowsDefault().
///
///
/// C++:
/// imgui.h:4185
///
void (*Renderer_RenderWindow)(ImGuiViewport* vp, void* render_arg)
///
///
///
///
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
///
///
[FieldOffset(264)]
public nint Renderer_RenderWindow;
///
///
/// . . . R . // (Optional) Call Present/SwapBuffers. 'render_arg' is the value passed to
/// RenderPlatformWindowsDefault().
///
///
/// C++:
/// imgui.h:4186
///
void (*Renderer_SwapBuffers)(ImGuiViewport* vp, void* render_arg)
///
///
///
///
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
///
///
[FieldOffset(272)]
public nint Renderer_SwapBuffers;
///
///
/// C++:
/// imgui.h:4191
///
ImVector<ImGuiPlatformMonitor> Monitors
///
///
///
///
/// (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.
///
///
[FieldOffset(280)]
public ImVector Monitors;
///
///
/// List of textures used by Dear ImGui (most often 1) + contents of external texture list is automatically
/// appended into this.
///
///
/// C++:
/// imgui.h:4199
///
ImVector<ImTextureData*> Textures
///
///
///
///
/// 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.
///
///
[FieldOffset(296)]
public ImVector Textures;
///
///
/// Main viewports, followed by all secondary viewports.
///
///
/// C++:
/// imgui.h:4203
///
ImVector<ImGuiViewport*> Viewports
///
///
///
///
/// 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")
///
///
[FieldOffset(312)]
public ImVector Viewports;
}
///
///
/// Interface between platform/renderer backends and ImGui (e.g. Clipboard, IME, Multi-Viewport support).
/// Extends ImGuiIO.
///
///
/// C++:
/// imgui.h:203
///
struct ImGuiPlatformIO
///
///
///
///
/// Forward declarations: ImGui layer
///
///
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;
///
///
/// C++:
/// imgui.h:4113
///
const char* (*Platform_GetClipboardTextFn)(ImGuiContext* ctx)
///
///
///
///
/// 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)
///
///
public ref nint Platform_GetClipboardTextFn => ref Unsafe.AsRef(&_ptr->Platform_GetClipboardTextFn);
///
///
/// C++:
/// imgui.h:4114
///
void (*Platform_SetClipboardTextFn)(ImGuiContext* ctx, const char* text)
///
///
///
///
/// 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)
///
///
public ref nint Platform_SetClipboardTextFn => ref Unsafe.AsRef(&_ptr->Platform_SetClipboardTextFn);
///
///
/// C++:
/// imgui.h:4115
///
void* Platform_ClipboardUserData
///
///
///
///
/// 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)
///
///
public ref nint Platform_ClipboardUserData => ref Unsafe.AsRef(&_ptr->Platform_ClipboardUserData);
///
///
/// C++:
/// imgui.h:4119
///
bool (*Platform_OpenInShellFn)(ImGuiContext* ctx, const char* path)
///
///
///
///
/// Optional: Open link/folder/file in OS Shell
/// (default to use ShellExecuteW() on Windows, system() on Linux/Mac)
///
///
public ref nint Platform_OpenInShellFn => ref Unsafe.AsRef(&_ptr->Platform_OpenInShellFn);
///
///
/// C++:
/// imgui.h:4120
///
void* Platform_OpenInShellUserData
///
///
///
///
/// Optional: Open link/folder/file in OS Shell
/// (default to use ShellExecuteW() on Windows, system() on Linux/Mac)
///
///
public ref nint Platform_OpenInShellUserData => ref Unsafe.AsRef(&_ptr->Platform_OpenInShellUserData);
///
///
/// C++:
/// imgui.h:4124
///
/// void (*Platform_SetImeDataFn)(ImGuiContext* ctx, ImGuiViewport* viewport, ImGuiPlatformImeData* data)
///
///
///
///
/// 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)
///
///
public ref nint Platform_SetImeDataFn => ref Unsafe.AsRef(&_ptr->Platform_SetImeDataFn);
///
///
/// C++:
/// imgui.h:4125
///
void* Platform_ImeUserData
///
///
///
///
/// 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)
///
///
public ref nint Platform_ImeUserData => ref Unsafe.AsRef(&_ptr->Platform_ImeUserData);
///
///
/// '.'
///
///
/// C++:
/// imgui.h:4130
///
ImWchar Platform_LocaleDecimalPoint
///
///
///
///
/// Optional: Platform locale
/// [Experimental] Configure decimal point e.g. '.' or ',' useful for some languages (e.g. German), generally pulled from *localeconv()->decimal_point
///
///
public ref uint Platform_LocaleDecimalPoint => ref Unsafe.AsRef(&_ptr->Platform_LocaleDecimalPoint);
///
///
/// C++:
/// imgui.h:4137
///
int Renderer_TextureMaxWidth
///
///
///
///
/// Optional: Maximum texture size supported by renderer (used to adjust how we size textures). 0 if not
/// known.
///
///
public ref int Renderer_TextureMaxWidth => ref Unsafe.AsRef(&_ptr->Renderer_TextureMaxWidth);
///
///
/// C++:
/// imgui.h:4138
///
int Renderer_TextureMaxHeight
///
///
///
///
/// Optional: Maximum texture size supported by renderer (used to adjust how we size textures). 0 if not
/// known.
///
///
public ref int Renderer_TextureMaxHeight => ref Unsafe.AsRef(&_ptr->Renderer_TextureMaxHeight);
///
///
/// C++:
/// imgui.h:4141
///
void* Renderer_RenderState
///
///
///
///
/// Written by some backends during ImGui_ImplXXXX_RenderDrawData() call to point backend_specific
/// ImGui_ImplXXXX_RenderState* structure.
///
///
public ref nint Renderer_RenderState => ref Unsafe.AsRef(&_ptr->Renderer_RenderState);
///
///
/// . . U . . // Create a new platform window for the given viewport
///
///
/// C++:
/// imgui.h:4160
///
void (*Platform_CreateWindow)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_CreateWindow => ref Unsafe.AsRef(&_ptr->Platform_CreateWindow);
///
///
/// N . U . D //
///
///
/// C++:
/// imgui.h:4161
///
void (*Platform_DestroyWindow)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_DestroyWindow => ref Unsafe.AsRef(&_ptr->Platform_DestroyWindow);
///
///
/// . . U . . // Newly created windows are initially hidden so SetWindowPos/Size/Title can be called on
/// them before showing the window
///
///
/// C++:
/// imgui.h:4162
///
void (*Platform_ShowWindow)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_ShowWindow => ref Unsafe.AsRef(&_ptr->Platform_ShowWindow);
///
///
/// . . U . . // Set platform window position (given the upper-left corner of client area)
///
///
/// C++:
/// imgui.h:4163
///
void (*Platform_SetWindowPos)(ImGuiViewport* vp, ImVec2 pos)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_SetWindowPos => ref Unsafe.AsRef(&_ptr->Platform_SetWindowPos);
///
///
/// N . . . . //
///
///
/// C++:
/// imgui.h:4164
///
ImVec2 (*Platform_GetWindowPos)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_GetWindowPos => ref Unsafe.AsRef(&_ptr->Platform_GetWindowPos);
///
///
/// . . U . . // Set platform window client area size (ignoring OS decorations such as OS title bar etc.)
///
///
/// C++:
/// imgui.h:4165
///
void (*Platform_SetWindowSize)(ImGuiViewport* vp, ImVec2 size)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_SetWindowSize => ref Unsafe.AsRef(&_ptr->Platform_SetWindowSize);
///
///
/// N . . . . // Get platform window client area size
///
///
/// C++:
/// imgui.h:4166
///
ImVec2 (*Platform_GetWindowSize)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_GetWindowSize => ref Unsafe.AsRef(&_ptr->Platform_GetWindowSize);
///
///
/// N . . . . // Return viewport density. Always 1,1 on Windows, often 2,2 on Retina display on macOS/iOS.
/// MUST BE INTEGER VALUES.
///
///
/// C++:
/// imgui.h:4167
///
ImVec2 (*Platform_GetWindowFramebufferScale)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_GetWindowFramebufferScale =>
ref Unsafe.AsRef(&_ptr->Platform_GetWindowFramebufferScale);
///
///
/// N . . . . // Move window to front and set input focus
///
///
/// C++:
/// imgui.h:4168
///
void (*Platform_SetWindowFocus)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_SetWindowFocus => ref Unsafe.AsRef(&_ptr->Platform_SetWindowFocus);
///
///
/// . . U . . //
///
///
/// C++:
/// imgui.h:4169
///
bool (*Platform_GetWindowFocus)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_GetWindowFocus => ref Unsafe.AsRef(&_ptr->Platform_GetWindowFocus);
///
///
/// N . . . . // Get platform window minimized state. When minimized, we generally won't attempt to get/set
/// size and contents will be culled more easily
///
///
/// C++:
/// imgui.h:4170
///
bool (*Platform_GetWindowMinimized)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_GetWindowMinimized => ref Unsafe.AsRef(&_ptr->Platform_GetWindowMinimized);
///
///
/// . . U . . // Set platform window title (given an UTF-8 string)
///
///
/// C++:
/// imgui.h:4171
///
void (*Platform_SetWindowTitle)(ImGuiViewport* vp, const char* str)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_SetWindowTitle => ref Unsafe.AsRef(&_ptr->Platform_SetWindowTitle);
///
///
/// . . U . . // (Optional) Setup global transparency (not per-pixel transparency)
///
///
/// C++:
/// imgui.h:4172
///
void (*Platform_SetWindowAlpha)(ImGuiViewport* vp, float alpha)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_SetWindowAlpha => ref Unsafe.AsRef(&_ptr->Platform_SetWindowAlpha);
///
///
/// . . U . . // (Optional) Called by UpdatePlatformWindows(). Optional hook to allow the platform backend
/// from doing general book-keeping every frame.
///
///
/// C++:
/// imgui.h:4173
///
void (*Platform_UpdateWindow)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_UpdateWindow => ref Unsafe.AsRef(&_ptr->Platform_UpdateWindow);
///
///
/// . . . 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().
///
///
/// C++:
/// imgui.h:4174
///
void (*Platform_RenderWindow)(ImGuiViewport* vp, void* render_arg)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_RenderWindow => ref Unsafe.AsRef(&_ptr->Platform_RenderWindow);
///
///
/// . . . R . // (Optional) Call Present/SwapBuffers (platform side! This is often unused!). 'render_arg'
/// is the value passed to RenderPlatformWindowsDefault().
///
///
/// C++:
/// imgui.h:4175
///
void (*Platform_SwapBuffers)(ImGuiViewport* vp, void* render_arg)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_SwapBuffers => ref Unsafe.AsRef(&_ptr->Platform_SwapBuffers);
///
///
/// N . . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Return DPI scale for this viewport. 1.0f = 96
/// DPI.
///
///
/// C++:
/// imgui.h:4176
///
float (*Platform_GetWindowDpiScale)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_GetWindowDpiScale => ref Unsafe.AsRef(&_ptr->Platform_GetWindowDpiScale);
///
///
/// . 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.
///
///
/// C++:
/// imgui.h:4177
///
void (*Platform_OnChangedViewport)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_OnChangedViewport => ref Unsafe.AsRef(&_ptr->Platform_OnChangedViewport);
///
///
/// 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.
///
///
/// C++:
/// imgui.h:4178
///
ImVec4 (*Platform_GetWindowWorkAreaInsets)(ImGuiViewport* vp)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_GetWindowWorkAreaInsets =>
ref Unsafe.AsRef(&_ptr->Platform_GetWindowWorkAreaInsets);
///
///
/// (Optional) For a Vulkan Renderer to call into Platform code (since the surface creation needs to tie
/// them both).
///
///
/// C++:
/// imgui.h:4179
///
/// int (*Platform_CreateVkSurface)(ImGuiViewport* vp, ImU64 vk_inst, const void* vk_allocators, ImU64* out_vk_surface)
///
///
///
///
/// Platform Backend functions (e.g. Win32, GLFW, SDL) ------------------- Called by -----
///
///
public ref nint Platform_CreateVkSurface => ref Unsafe.AsRef(&_ptr->Platform_CreateVkSurface);
///
///
/// . . U . . // Create swap chain, frame buffers etc. (called after Platform_CreateWindow)
///
///
/// C++:
/// imgui.h:4182
///
void (*Renderer_CreateWindow)(ImGuiViewport* vp)
///
///
///
///
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
///
///
public ref nint Renderer_CreateWindow => ref Unsafe.AsRef(&_ptr->Renderer_CreateWindow);
///
///
/// N . U . D // Destroy swap chain, frame buffers etc. (called before Platform_DestroyWindow)
///
///
/// C++:
/// imgui.h:4183
///
void (*Renderer_DestroyWindow)(ImGuiViewport* vp)
///
///
///
///
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
///
///
public ref nint Renderer_DestroyWindow => ref Unsafe.AsRef(&_ptr->Renderer_DestroyWindow);
///
///
/// . . U . . // Resize swap chain, frame buffers etc. (called after Platform_SetWindowSize)
///
///
/// C++:
/// imgui.h:4184
///
void (*Renderer_SetWindowSize)(ImGuiViewport* vp, ImVec2 size)
///
///
///
///
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
///
///
public ref nint Renderer_SetWindowSize => ref Unsafe.AsRef(&_ptr->Renderer_SetWindowSize);
///
///
/// . . . R . // (Optional) Clear framebuffer, setup render target, then render the viewport->DrawData.
/// 'render_arg' is the value passed to RenderPlatformWindowsDefault().
///
///
/// C++:
/// imgui.h:4185
///
void (*Renderer_RenderWindow)(ImGuiViewport* vp, void* render_arg)
///
///
///
///
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
///
///
public ref nint Renderer_RenderWindow => ref Unsafe.AsRef(&_ptr->Renderer_RenderWindow);
///
///
/// . . . R . // (Optional) Call Present/SwapBuffers. 'render_arg' is the value passed to
/// RenderPlatformWindowsDefault().
///
///
/// C++:
/// imgui.h:4186
///
void (*Renderer_SwapBuffers)(ImGuiViewport* vp, void* render_arg)
///
///
///
///
/// Renderer Backend functions (e.g. DirectX, OpenGL, Vulkan) ------------ Called by -----
///
///
public ref nint Renderer_SwapBuffers => ref Unsafe.AsRef(&_ptr->Renderer_SwapBuffers);
///
///
/// C++:
/// imgui.h:4191
///
ImVector<ImGuiPlatformMonitor> Monitors
///
///
///
///
/// (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.
///
///
public ref ImVector Monitors =>
ref Unsafe.AsRef>(&_ptr->Monitors);
///
///
/// List of textures used by Dear ImGui (most often 1) + contents of external texture list is automatically
/// appended into this.
///
///
/// C++:
/// imgui.h:4199
///
ImVector<ImTextureData*> Textures
///
///
///
///
/// 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.
///
///
public ref ImVector Textures => ref Unsafe.AsRef>(&_ptr->Textures);
///
///
/// Main viewports, followed by all secondary viewports.
///
///
/// C++:
/// imgui.h:4203
///
ImVector<ImGuiViewport*> Viewports
///
///
///
///
/// 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")
///
///
public ref ImVector Viewports =>
ref Unsafe.AsRef>(&_ptr->Viewports);
}
}