An editor-style docking region: a tree of resizable splits with tabbed UIDockGroups at the
leaves. Add panels with addPanel (a new tab in the primary group) or dock(panel, target,
zone) (split a target). Dragging a panel's tab re-docks it live — a drop-zone overlay shows
where it will land (CENTER tabs into a group, the edges split it), and emptied groups
collapse so the tree stays tidy. Split dividers drag to reproportion.
The layout is a mutable node tree the host lays out to fill its bounds; call invalidate()
after a structural change (the dock/undock operations do this for you).
Constructor
Variables
Methods
addPanel(panel:UIDockPanel):UIDockGroup
Adds a panel as a new tab in the primary (first) group, creating the group when the host is empty.
Parameters:
panel | the panel to dock |
|---|
Returns:
the group the panel landed in
dock(panel:UIDockPanel, target:UIDockGroup, zone:UIDockZone):UIDockGroup
Docks a panel into a target group: a new tab (CENTER) or a split on an edge.
Parameters:
panel | the panel to dock (need not already be in the host) |
|---|---|
target | the group to dock into or split |
zone | where the panel lands |
Returns:
the group the panel landed in (a new group for edge zones)