rev: 21c5e6d2f665d0e8b4ff917a51b664c895dab2ed tukan/include/tukan/imgui_dock.h -rw-r--r-- 922 bytes View raw Log this file
21c5e6d2f665 — Leonard Ritter * renamed project from Liminal to Tukan 2 years ago
                                                                                
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
32
33
34
35
36
37
38
39
40
// based on https://github.com/nem0/LumixEngine/blob/master/external/imgui/imgui_dock.h

#pragma once

//namespace Lumix { namespace FS { class OsFile; } }
//struct lua_State;

#ifdef __cplusplus
extern "C" {
#else
typedef struct ImVec2 ImVec2;
typedef int ImGuiWindowFlags;
#endif
    
typedef enum ImGuiDockSlot {
    ImGuiDockSlot_Left,
    ImGuiDockSlot_Right,
    ImGuiDockSlot_Top,
    ImGuiDockSlot_Bottom,
    ImGuiDockSlot_Tab,

    ImGuiDockSlot_Float,
    ImGuiDockSlot_None
} ImGuiDockSlot;

extern void igBeginWorkspace();
extern void igEndWorkspace();
extern void igShutdownDock();
extern void igSetNextDock(ImGuiDockSlot slot);
extern bool igBeginDock(const char* label, bool* opened, ImGuiWindowFlags extra_flags);
extern void igEndDock();
extern void igSetDockActive();
extern void igDockDebugWindow();
//void SaveDock(Lumix::FS::OsFile& file);
//void LoadDock(lua_State* L);

#ifdef __cplusplus
}
#endif