ImGuiPlatformIO

imguicpp.ImGuiPlatformIO (extern class)

Static Members

setPlatform_GetWindowWorkAreaInsets(getWindowWorkAreaInsetsFunc: ImGuiOpaqueCallback): Void

Set ImGuiPlatformIO::Platform_GetWindowWorkAreaInsets in a C-compatible mannner

Name Type
getWindowWorkAreaInsetsFunc ImGuiOpaqueCallback

setPlatform_GetWindowFramebufferScale(getWindowFramebufferScaleFunc: ImGuiOpaqueCallback): Void

Set ImGuiPlatformIO::Platform_GetWindowFramebufferScale in a C-compatible mannner

Name Type
getWindowFramebufferScaleFunc ImGuiOpaqueCallback

setPlatform_GetWindowPos(getWindowPosFunc: ImGuiOpaqueCallback): Void

Set ImGuiPlatformIO::Platform_GetWindowPos in a C-compatible mannner

Name Type
getWindowPosFunc ImGuiOpaqueCallback

setPlatform_GetWindowSize(getWindowSizeFunc: ImGuiOpaqueCallback): Void

Set ImGuiPlatformIO::Platform_GetWindowSize in a C-compatible mannner

Name Type
getWindowSizeFunc ImGuiOpaqueCallback

clearPlatformHandlers(self: cpp.Star): Void

Clear all Platform_XXX fields. Typically called on Platform Backend shutdown.

Name Type
self cpp.Star

clearRendererHandlers(self: cpp.Star): Void

Clear all Renderer_XXX fields. Typically called on Renderer Backend shutdown.

Name Type
self cpp.Star

Instance Members

platform_GetClipboardTextFn: ImGuiOpaqueCallback

Should return NULL on failure (e.g. clipboard data is not text).


platform_SetClipboardTextFn: ImGuiOpaqueCallback

platform_ClipboardUserData: cpp.RawPointer<cpp.Void>

platform_OpenInShellFn: ImGuiOpaqueCallback

platform_OpenInShellUserData: cpp.RawPointer<cpp.Void>

platform_SetImeDataFn: ImGuiOpaqueCallback

platform_ImeUserData: cpp.RawPointer<cpp.Void>

platform_LocaleDecimalPoint: cpp.UInt16

'.'


renderer_TextureMaxWidth: Int

renderer_TextureMaxHeight: Int

renderer_RenderState: cpp.RawPointer<cpp.Void>

drawCallback_ResetRenderState: ImGuiOpaqueCallback

Request to reset the graphics/render state.


drawCallback_SetSamplerLinear: ImGuiOpaqueCallback

Request backend to set texture sampling to Linear.


drawCallback_SetSamplerNearest: ImGuiOpaqueCallback

Request backend to set texture sampling to Nearest/Point.


platform_CreateWindow: ImGuiOpaqueCallback

. . U . . // Create a new platform window for the given viewport


platform_DestroyWindow: ImGuiOpaqueCallback

N . U . D //


platform_ShowWindow: ImGuiOpaqueCallback

. . U . . // Newly created windows are initially hidden so SetWindowPos/Size/Title can be called on them before showing the window


platform_SetWindowPos: ImGuiOpaqueCallback

. . U . . // Set platform window position (given the upper-left corner of client area)


platform_GetWindowPos: ImGuiOpaqueCallback

N . . . . // (Use ImGuiPlatformIO_SetPlatform_GetWindowPos() to set this from C, otherwise you will likely encounter stack corruption)


platform_SetWindowSize: ImGuiOpaqueCallback

. . U . . // Set platform window client area size (ignoring OS decorations such as OS title bar etc.)


platform_GetWindowSize: ImGuiOpaqueCallback

N . . . . // Get platform window client area size (Use ImGuiPlatformIO_SetPlatform_GetWindowSize() to set this from C, otherwise you will likely encounter stack corruption)


platform_GetWindowFramebufferScale: ImGuiOpaqueCallback

N . . . . // Return viewport density. Always 1,1 on Windows, often 2,2 on Retina display on macOS/iOS. MUST BE INTEGER VALUES. (Use ImGuiPlatformIO_SetPlatform_GetWindowFramebufferScale() to set this from C, otherwise you will likely encounter stack corruption)


platform_SetWindowFocus: ImGuiOpaqueCallback

N . . . . // Move window to front and set input focus


platform_GetWindowFocus: ImGuiOpaqueCallback

. . U . . //


platform_GetWindowMinimized: ImGuiOpaqueCallback

N . . . . // Get platform window minimized state. When minimized, we generally won't attempt to get/set size and contents will be culled more easily


platform_SetWindowTitle: ImGuiOpaqueCallback

. . U . . // Set platform window title (given an UTF-8 string)


platform_SetWindowAlpha: ImGuiOpaqueCallback

. . U . . // (Optional) Setup global transparency (not per-pixel transparency)


platform_UpdateWindow: ImGuiOpaqueCallback

. . U . . // (Optional) Called by UpdatePlatformWindows(). Optional hook to allow the platform backend from doing general book-keeping every frame.


platform_RenderWindow: ImGuiOpaqueCallback

. . . 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().


platform_SwapBuffers: ImGuiOpaqueCallback

. . . R . // (Optional) Call Present/SwapBuffers (platform side! This is often unused!). 'render_arg' is the value passed to RenderPlatformWindowsDefault().


platform_GetWindowDpiScale: ImGuiOpaqueCallback

N . . . . // (Optional) [BETA] FIXME-DPI: DPI handling: Return DPI scale for this viewport. 1.0f = 96 DPI.


platform_OnChangedViewport: ImGuiOpaqueCallback

. 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.


platform_GetWindowWorkAreaInsets: ImGuiOpaqueCallback

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. (Use ImGuiPlatformIO_SetPlatform_GetWindowWorkAreaInsets() to set this from C, otherwise you will likely encounter stack corruption)


platform_CreateVkSurface: ImGuiOpaqueCallback

(Optional) For a Vulkan Renderer to call into Platform code (since the surface creation needs to tie them both).


renderer_CreateWindow: ImGuiOpaqueCallback

. . U . . // Create swap chain, frame buffers etc. (called after Platform_CreateWindow)


renderer_DestroyWindow: ImGuiOpaqueCallback

N . U . D // Destroy swap chain, frame buffers etc. (called before Platform_DestroyWindow)


renderer_SetWindowSize: ImGuiOpaqueCallback

. . U . . // Resize swap chain, frame buffers etc. (called after Platform_SetWindowSize)


renderer_RenderWindow: ImGuiOpaqueCallback

. . . R . // (Optional) Clear framebuffer, setup render target, then render the viewport->DrawData. 'render_arg' is the value passed to RenderPlatformWindowsDefault().


renderer_SwapBuffers: ImGuiOpaqueCallback

. . . R . // (Optional) Call Present/SwapBuffers. 'render_arg' is the value passed to RenderPlatformWindowsDefault().



List of textures used by Dear ImGui (most often 1) + contents of external texture list is automatically appended into this.


Main viewports, followed by all secondary viewports.

Metadata

Name Parameters
:structAccess -
:include "linc_imgui.h"