class
DockManager
public class DockManager : Widget Constructors
DockManager(Widget parent) Properties
| Name | Type | Description |
|---|---|---|
OnLayoutLoaded | Action | Called when the layout state is changed programatically. This is generally called when the default layout is loaded, or a saved layout is loaded. |
DockTypes | IEnumerable<DockInfo> | A list of dock types that are registered. |
State | String | A JSON string representing the entire state of the dock manager, i.e. position of all the docks, etc. |
Methods
Void RegisterDockType(String name, String icon, Func<Widget> create, Boolean deleteOnClose = True) Void UnregisterDockType(String name) Unregister a dock type.
Void AddDock(Widget sibling, Widget window, DockArea dockArea = 5, DockProperty properties = 0, Single split = 0.5) Add a window next (or on top of) to the specified window.
Boolean IsDockOpen(String title) Whether the given dock-able window is visible or not.
Boolean IsDockOpen(Widget widget, Boolean includeCookied = True) Whether the given dock-able window is visible or not.
Widget GetDockWidget(String name) Get an active, created dock
Boolean RaiseDock(String name) Raise this dock to the front of any tabs.
Void RaiseDock(Widget val) Raise this dock to the front of any tabs.
Void SetDockState(String name, Boolean visible) Set dock as visible, or hidden, by name.
T Create() Creates a widget by type
Void Clear() Clear the known widgets, reset manager to an empty state.