ImGuiPlatformIO
Static Members
setPlatform_GetWindowWorkAreaInsets(getWindowWorkAreaInsetsFunc: ImGuiOpaqueCallback): VoidSet ImGuiPlatformIO::Platform_GetWindowWorkAreaInsets in a C-compatible mannner
| Name | Type |
|---|---|
getWindowWorkAreaInsetsFunc |
ImGuiOpaqueCallback |
setPlatform_GetWindowFramebufferScale(getWindowFramebufferScaleFunc: ImGuiOpaqueCallback): VoidSet ImGuiPlatformIO::Platform_GetWindowFramebufferScale in a C-compatible mannner
| Name | Type |
|---|---|
getWindowFramebufferScaleFunc |
ImGuiOpaqueCallback |
setPlatform_GetWindowPos(getWindowPosFunc: ImGuiOpaqueCallback): VoidSet ImGuiPlatformIO::Platform_GetWindowPos in a C-compatible mannner
| Name | Type |
|---|---|
getWindowPosFunc |
ImGuiOpaqueCallback |
setPlatform_GetWindowSize(getWindowSizeFunc: ImGuiOpaqueCallback): VoidSet ImGuiPlatformIO::Platform_GetWindowSize in a C-compatible mannner
| Name | Type |
|---|---|
getWindowSizeFunc |
ImGuiOpaqueCallback |
Clear all Platform_XXX fields. Typically called on Platform Backend shutdown.
| Name | Type |
|---|---|
self |
cpp.Star |
Clear all Renderer_XXX fields. Typically called on Renderer Backend shutdown.
| Name | Type |
|---|---|
self |
cpp.Star |
Instance Members
platform_GetClipboardTextFn: ImGuiOpaqueCallbackShould return NULL on failure (e.g. clipboard data is not text).
platform_SetClipboardTextFn: ImGuiOpaqueCallbackplatform_ClipboardUserData: cpp.RawPointer<cpp.Void>platform_OpenInShellFn: ImGuiOpaqueCallbackplatform_OpenInShellUserData: cpp.RawPointer<cpp.Void>platform_SetImeDataFn: ImGuiOpaqueCallbackplatform_ImeUserData: cpp.RawPointer<cpp.Void>platform_LocaleDecimalPoint: cpp.UInt16'.'
renderer_TextureMaxWidth: Intrenderer_TextureMaxHeight: Intrenderer_RenderState: cpp.RawPointer<cpp.Void>drawCallback_ResetRenderState: ImGuiOpaqueCallbackRequest to reset the graphics/render state.
drawCallback_SetSamplerLinear: ImGuiOpaqueCallbackRequest backend to set texture sampling to Linear.
drawCallback_SetSamplerNearest: ImGuiOpaqueCallbackRequest backend to set texture sampling to Nearest/Point.
platform_CreateWindow: ImGuiOpaqueCallback. . U . . // Create a new platform window for the given viewport
platform_DestroyWindow: ImGuiOpaqueCallbackN . 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: ImGuiOpaqueCallbackN . . . . // (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: ImGuiOpaqueCallbackN . . . . // Get platform window client area size (Use ImGuiPlatformIO_SetPlatform_GetWindowSize() to set this from C, otherwise you will likely encounter stack corruption)
platform_GetWindowFramebufferScale: ImGuiOpaqueCallbackN . . . . // 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: ImGuiOpaqueCallbackN . . . . // Move window to front and set input focus
platform_GetWindowFocus: ImGuiOpaqueCallback. . U . . //
platform_GetWindowMinimized: ImGuiOpaqueCallbackN . . . . // 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: ImGuiOpaqueCallbackN . . . . // (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: ImGuiOpaqueCallbackN . . . . // (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: ImGuiOpaqueCallbackN . 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().
monitors: ImVector_ImGuiPlatformMonitortextures: ImVector_ImTextureDataPtrList of textures used by Dear ImGui (most often 1) + contents of external texture list is automatically appended into this.
viewports: ImVector_ImGuiViewportPtrMain viewports, followed by all secondary viewports.
Metadata
| Name | Parameters |
|---|---|
:structAccess |
- |
:include |
"linc_imgui.h" |