Docking: Added DockBuilderForkNode() primitive for usage for user code to fork/copy entire layouts. This will probably need to be added to as I find ways to migrate patterns from user code to the library. Added IMGUI_DEBUG_DOCKING_INI helper to facilitate debugging. (+1 squashed commits)

This commit is contained in:
omar
2018-09-26 13:09:41 +02:00
parent dc92431328
commit 45731cca19
3 changed files with 57 additions and 12 deletions

View File

@ -1565,13 +1565,14 @@ struct ImGuiSizeCallbackData
ImVec2 DesiredSize; // Read-write. Desired size, based on user's mouse position. Write to this field to restrain resizing.
};
// For SetNextWindowDockFamily() and DockSpace() function
// [BETA] For SetNextWindowDockFamily() and DockSpace() function
struct ImGuiDockFamily
{
ImGuiID ID; // 0 = unaffiliated
bool CompatibleWithFamilyZero; // true = can be docked/merged with an unaffiliated window
ImGuiDockFamily() { ID = 0; CompatibleWithFamilyZero = true; }
ImGuiDockFamily() { ID = 0; CompatibleWithFamilyZero = true; }
ImGuiDockFamily(ImGuiID id, bool compatible_with_family_zero = true) { ID = id; CompatibleWithFamilyZero = compatible_with_family_zero; }
};
// Data payload for Drag and Drop operations