Class Gsage::ImGuiDockspaceRenderer¶
-
class
ImGuiDockspaceRenderer
¶ Dockspace for ImGUI.
Provides alternate methods for
Begin
andEnd
. Docked view should be surrounded byBeginDock
andEndDock
methods.local flags = 0 local active, open = imgui.BeginDockOpen("test", true, flags) if active and open then -- render some view here imgui.TextWrapped("Hello World!") end imgui.EndDock()
Saving and loading dockspace state:
-- save dock state (will get lua table) local savedState = imgui.GetDockState() ... -- restore dock state imgui.SetDockState(savedState)