[API] Add support for DockBuilder

This commit is contained in:
SpaiR committed 2020-09-05 15:27:03 +03:00
1 parent b3b26e9136
commit 4e564240ca
11 files changed
+1057 -14

No files matched your search

@@ -0,0 +1,10 @@
package imgui.internal.flag;
public final class ImGuiAxis {
private ImGuiAxis() {
}
public static final int None = -1;
public static final int X = 0;
public static final int Y = 1;
}
@@ -0,0 +1,50 @@
package imgui.internal.flag;
public final class ImGuiDockNodeFlags extends imgui.flag.ImGuiDockNodeFlags {
private ImGuiDockNodeFlags() {
}
/**
* A dockspace is a node that occupy space within an existing user window. Otherwise the node is floating and create its own window.
*/
public static final int DockSpace = 1 << 10;
/**
* The central node has 2 main properties: stay visible when empty, only use "remaining" spaces from its neighbor.
*/
public static final int CentralNode = 1 << 11;
/**
* Tab bar is completely unavailable. No triangle in the corner to enable it back.
*/
public static final int NoTabBar = 1 << 12;
/**
* Tab bar is hidden, with a triangle in the corner to show it again (NB: actual tab-bar instance may be destroyed as this is only used for single-window tab bar)
*/
public static final int HiddenTabBar = 1 << 13;
/**
* Disable window/docking menu (that one that appears instead of the collapse button)
*/
public static final int NoWindowMenuButton = 1 << 14;
public static final int NoCloseButton = 1 << 15;
/**
* Disable any form of docking in this dockspace or individual node. (On a whole dockspace, this pretty much defeat the purpose of using a dockspace at all). Note: when turned on, existing docked nodes will be preserved.
*/
public static final int NoDocking = 1 << 16;
/**
* [EXPERIMENTAL] Prevent another window/node from splitting this node.
*/
public static final int NoDockingSplitMe = 1 << 17;
/**
* [EXPERIMENTAL] Prevent this node from splitting another window/node.
*/
public static final int NoDockingSplitOther = 1 << 18;
/**
* [EXPERIMENTAL] Prevent another window/node to be docked over this node.
*/
public static final int NoDockingOverMe = 1 << 19;
/**
* [EXPERIMENTAL] Prevent this node to be docked over another window/node.
*/
public static final int NoDockingOverOther = 1 << 20;
public static final int NoResizeX = 1 << 21;
public static final int NoResizeY = 1 << 22;
}
@@ -0,0 +1,11 @@
package imgui.internal.flag;
public final class ImGuiDockNodeState {
private ImGuiDockNodeState() {
}
public static final int Unknown = 0;
public static final int HostWindowHiddenBecauseSingleWindow = 1;
public static final int HostWindowHiddenBecauseWindowsAreResizing = 2;
public static final int HostWindowVisible = 3;
}