ImGuiClipboard
imgui.ImGuiClipboard (Class)
Route ImGui's clipboard (SetClipboardText/GetClipboardText, and copy/paste inside InputText widgets) through the host application.
ImGui's own defaults only reach the OS clipboard on targets where it has a
platform backend; on js/wasm its default is an internal buffer that never
touches the system clipboard. The host usually has a better channel (a game
engine's clipboard API, Electron's clipboard module...): install it here.
Per target:
- hxcpp: GC-rooted closures through linc (
ImGuiNative.setClipboardHandlers); - js/wasm:
Module.addFunctiontrampolines overdcx_SetClipboardHandlers(the getter's string lives in a persistent wasm-side buffer); - C#/Unity: not wired (Unity's
GUIUtility.systemCopyBufferintegration would belong in a DCImGuiClipboard.cs companion; ImGui's internal clipboard is used until then).
Must be called with a current ImGui context (after createContext).
Static Members
setHandlers(get: Function, set: Function): Void| Name | Type |
|---|---|
get |
Function |
set |
Function |