-
Notifications
You must be signed in to change notification settings - Fork 30
/
imgui_dock.h
31 lines (24 loc) · 867 Bytes
/
imgui_dock.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// based on https://github.com/nem0/LumixEngine/blob/master/external/imgui/imgui_dock.h
// modified from https://bitbucket.org/duangle/liminal/src/tip/src/liminal/imgui_dock.h
#pragma once
// Forward declarations
typedef int ImGuiWindowFlags;
typedef enum ImGuiDockSlot {
ImGuiDockSlot_Left,
ImGuiDockSlot_Right,
ImGuiDockSlot_Top,
ImGuiDockSlot_Bottom,
ImGuiDockSlot_Tab,
ImGuiDockSlot_Float,
ImGuiDockSlot_None
} ImGuiDockSlot;
namespace ImGui{
IMGUI_API bool BeginDockspace();
IMGUI_API void EndDockspace();
IMGUI_API void ShutdownDock();
IMGUI_API void SetNextDock( const char* dock_panel , ImGuiDockSlot slot );
IMGUI_API bool BeginDock(const char* label, bool* opened = NULL, ImGuiWindowFlags extra_flags = 0);
IMGUI_API void EndDock();
IMGUI_API void DockDebugWindow(const char* dock_panel);
IMGUI_API void InitDock();
};