An addon of imgui for supporting docks in the imgui's window

imguiDock

An addon of imgui for support dock in the window

QQ图片20180106100302

How to use

void setup(){
	// auto-load the imgui.ini settings
	ImGui::InitDock();
}

void update(){
	if(ImGui::Begin("Dock Demo"))
	{
		// dock layout by hard-coded or .ini file
		ImGui::BeginDockspace();

		if(ImGui::BeginDock("Dock 1")){
			ImGui::Text("I'm Wubugui!");
		}
		ImGui::EndDock();

		if(ImGui::BeginDock("Dock 2")){
			ImGui::Text("I'm BentleyBlanks!");
		}
		ImGui::EndDock();

		if(ImGui::BeginDock("Dock 3")){
			ImGui::Text("I'm LonelyWaiting!");
		}
		ImGui::EndDock();

		ImGui::EndDockspace();
	}
	ImGui::End();
	
	// multiple dockspace supported
	if(ImGui::Begin("Dock Demo2"))
	{
		ImGui::BeginDockspace();

		if(ImGui::BeginDock("Dock 2")){
			ImGui::Text("Who's your daddy?");
		}
		ImGui::EndDock();

		ImGui::EndDockspace();
	}
	ImGui::End();
}

Intro

Thx to the nem0, paniq, adcox's distribute of imgui_dock, so the imgui_dock was able to auto save/load to/from the imgui.ini.

It seems the Lumix Engine have done a quite intelligible work just save the dock's property to a Lua file, so I was just save the properties to the imgui.ini.(you can modify the format if your want)

Some complie errors may occured because of the API change of ImGui, pls let me know

Collaborator

  1. LonelyWaiting
  2. BentleyBlanks
  3. Wubugui
Owner
BB
Compter Graphics, Game Developer
BB
Similar Resources

WMBar is a window manager agnostic status bar that aims to be lightweight, simple, extensible/modular and fast.

WMBar is a window manager agnostic status bar that aims to be lightweight, simple, extensible/modular and fast.

WMBar is a window manager agnostic status bar that aims to be lightweight, simple, extensible/modular and fast.

Nov 27, 2021

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies

Dear ImGui (This library is available under a free and permissive license, but needs financial support to sustain its continued improvements. In addit

Sep 26, 2022

Advanced 2D Plotting for Dear ImGui

Advanced 2D Plotting for Dear ImGui

ImPlot ImPlot is an immediate mode, GPU accelerated plotting library for Dear ImGui. It aims to provide a first-class API that ImGui fans will love. I

Sep 29, 2022

CMakeLists wrapper around imgui

ImGui Wrappings This is a trifold wrapper for the Dear ImGui library. Ease integration with CMake, Provide an RAII mechanism for ImGui scopes, Provide

Aug 25, 2022

super duper simple gui for C, wrapping imgui and stb

super duper simle gui for C, wrapping imgui and stb You can use it as a static library with cmake. See the example directory for a complete example. E

May 19, 2022

Real-time GUI layout creator/editor for Dear ImGui

Real-time GUI layout creator/editor for Dear ImGui

ImStudio Real-time GUI layout creator/editor for Dear ImGui Inspired by Code-Building/ImGuiBuilder Features Drag edit Property edit Covers most of the

Sep 28, 2022

KeyAuth login form made with ImGui.

KeyAuth-ImGui-Example KeyAuth ImGui Example Download Repository Download the DirectX SDK

Sep 9, 2022

Dear ImGui prototyping wrapper.

LabImGui Prototyping framework LabImGui wraps up creating a window, GL bindings, and a full screen docking set up with ImGui so that all of the boiler

Dec 2, 2021

An integrated information center created with dear ImGui using modern C++ design / coding style.

ImGui info-center Introduction An integrated notification and information center created with dear ImGui. Interfaces and variables are designed under

Jul 20, 2022
Comments
  • Help with löve version

    Help with löve version

    Hi, this is kinda unrelated but it would help a lot with your input.

    This reprepo for löve imgui binding uses this repo for the docking features, however there are problems with it, please see this

    Thanks!

    Sent from my HUAWEI GR5 2017 using FastHub

  • Imgui Dock white screen error when reopening application

    Imgui Dock white screen error when reopening application

    What I did:

    1. Included imgui_dock
    2. wrote this on setup:
    ImGui::InitDock();
    
    1. wrote this on loop:
    	if(ImGui::Begin("Dock Demo"))
    	{
    		// dock layout by hard-coded or .ini file
    		ImGui::BeginDockspace("Paddle");
    
    		if(ImGui::BeginDock("Dock 1")){
    			ImGui::Text("Hi");
    		}
    		ImGui::EndDock();
    
    		if(ImGui::BeginDock("Dock 2")){
    			ImGui::Text("I'm BentleyBlanks!");
    		}
    		ImGui::EndDock();
    
    		if(ImGui::BeginDock("Dock 3")){
    			ImGui::Text("Hello World");
    		}
    		ImGui::EndDock();
    
    		ImGui::EndDockspace();
    	}
    	ImGui::End();
    
    1. Launch the application
    2. Close the application
    3. Relaunch the application
    4. white screen, the application doesn't to anything.
  • Memory leaks

    Memory leaks

    When i use the docking files the docking works perfectly but when i close my application there's a chance i will get an exception and always a bunch of memory leaks..

    When i remove docking this never occurs

  • 搞到新的imgui里可能有几个小问题

    搞到新的imgui里可能有几个小问题

    imgui代码有一些变化:

Related tags
Addon widgets for GUI library Dear ImGui.
Addon widgets for GUI library Dear ImGui.

ImGui-Addons Addon widgets for GUI library Dear ImGui. File Dialog A simple cross-platform file dialog that uses dirent interface for reading director

Sep 21, 2022
Window and GUI system based on Dear ImGui from OCornut
Window and GUI system based on Dear ImGui from OCornut

ImWindow Window and GUI system based on ImGui from OCornut. Include docking/floating window, multi window and multi render support. Platform Actually

Sep 24, 2022
Simple ImGui external base. Uses ImGui DX9.
Simple ImGui external base. Uses ImGui DX9.

ImGui External Base ??️ What is this? ⚡ Hello all! I used to use noteffex's loader base for all my external ImGui projects. I got bored of using this

Jun 29, 2022
imgui-filebrowser is a header-only file browser implementation for dear-imgui. C++ 17 is required.
imgui-filebrowser is a header-only file browser implementation for dear-imgui. C++ 17 is required.

imgui-filebrowser imgui-filebrowser is a header-only file browser implementation for dear-imgui. C++ 17 is required. Getting Started imfilebrowser.h s

Sep 27, 2022
Sway/I3 inspired tiling window manager for Wayfire

Swayfire Sway/I3 inspired tiling window manager for Wayfire. This project aims to emulate and improve upon sway/i3wm features as a plugin for the Wayf

Sep 29, 2022
NWM is a simple window manager for linux which uses Xlib for managing windows

NWM is a simple window manager for linux which uses Xlib for managing windows.

Jun 19, 2022
Modern Window Sitter for X11 based Desktop Environments
Modern Window Sitter for X11 based Desktop Environments

Modern Window Sitter for X11 based Desktop Environments (Coming to Wayland, Windows and Mac soon-ish). But using with a terminal emulator is recommended.

Aug 30, 2022
x11 window manager
x11 window manager

viru - Yet Another WM

Dec 6, 2021
GUI for calibrating the wacom tablet to a screen or window
GUI for calibrating the wacom tablet to a screen or window

wacom-settings GUI for calibrating the wacom tablet to a screen or window. Learning project for writing in C. Uses GTK4 library for the GUI and X11 li

Sep 10, 2022
tabbed window manager that can tile windows inside floating containers

tabbed window manager that can tile windows inside floating containers

Sep 25, 2022