From 5bb5049cf495e490501a4ac217dd03f815e1ca4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Thu, 1 Oct 2015 23:00:45 -0700 Subject: [PATCH] Added imgui dock debug code. --- examples/common/imgui/ocornut_imgui.cpp | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/examples/common/imgui/ocornut_imgui.cpp b/examples/common/imgui/ocornut_imgui.cpp index 69806a04..a5b3de44 100644 --- a/examples/common/imgui/ocornut_imgui.cpp +++ b/examples/common/imgui/ocornut_imgui.cpp @@ -342,6 +342,32 @@ struct OcornutImguiContext m_wm = BX_NEW(m_allocator, WindowManager); m_wm->Init(); + +#if 0 + { + class Window : public ImGuiWM::Window + { + public: + Window(const char* _title) + : ImGuiWM::Window() + { + SetTitle(_title); + } + + virtual void OnGui() BX_OVERRIDE + { + } + }; + + Window* w0 = new Window("test"); + Window* w1 = new Window("abcd"); + Window* w2 = new Window("xyzw"); + + m_wm->Dock(w0); + m_wm->DockWith(w1, w0, ImGuiWM::E_DOCK_ORIENTATION_RIGHT); + m_wm->DockWith(w2, w1, ImGuiWM::E_DOCK_ORIENTATION_BOTTOM); + } +#endif // 0 } void destroy()