DockHostclass
Tabbed panel docking with nested splits. Registered content is owned until this host is deleted or transfers it. Splits respect the content's pixel min/max width and height where space allows. Tab groups reserve the largest minimum and allow the largest maximum of their tabs. If constraints cannot fit, the available space is shared.
Constructors1
Showing 1 constructors
public DockHost()
Creates an empty docking workspace.
No results match this filter.
Methods10
Showing 10 methods
public bool Activate(string id)
Selects an open panel without moving it.
| Parameter | Type | Description |
|---|---|---|
| id | string | — |
bool—public bool Close(string id)
Closes a panel without deleting its content. Nonclosable panels are left open.
| Parameter | Type | Description |
|---|---|---|
| id | string | — |
bool—public void Dock(string id, string relativeTo = null, Sandbox.UI.DockPosition position = 0, float fraction = 0.5, int tabIndex = -1)
Opens or moves a registered panel. Edge fractions describe the incoming panel's share.
| Parameter | Type | Description |
|---|---|---|
| id | string | — |
| relativeTo = null | string | — |
| position = 0 | DockPosition | — |
| fraction = 0.5 | float | — |
| tabIndex = -1 | int | — |
void—public Sandbox.UI.DockItem Find(string id)
Finds a registered panel, including closed panels.
| Parameter | Type | Description |
|---|---|---|
| id | string | — |
public bool IsOpen(string id)
Whether a registered panel is in the layout.
| Parameter | Type | Description |
|---|---|---|
| id | string | — |
bool—public virtual void OnDeleted()
void—public bool RestoreState(string json)
Restores a valid layout atomically. Open nonclosable panels must remain present.
| Parameter | Type | Description |
|---|---|---|
| json | string | — |
bool—public virtual void Tick()
void—No results match this filter.
Properties2
Showing 2 properties
No results match this filter.